General fixes
Fixed most compiler warnings. Changed used interface from utun0/utun1 to lynx0
This commit is contained in:
@@ -47,9 +47,14 @@ namespace ColumnLynx::Utils {
|
||||
mPublicKey = pk;
|
||||
mPrivateKey = sk;
|
||||
|
||||
int r;
|
||||
// Convert to Curve25519 keys for encryption
|
||||
crypto_sign_ed25519_pk_to_curve25519(mXPublicKey.data(), mPublicKey.data());
|
||||
crypto_sign_ed25519_sk_to_curve25519(mXPrivateKey.data(), mPrivateKey.data());
|
||||
r = crypto_sign_ed25519_pk_to_curve25519(mXPublicKey.data(), mPublicKey.data());
|
||||
r = crypto_sign_ed25519_sk_to_curve25519(mXPrivateKey.data(), mPrivateKey.data());
|
||||
|
||||
if (r != 0) {
|
||||
throw std::runtime_error("Conversion of signing keys to encryption keys failed!");
|
||||
}
|
||||
}
|
||||
|
||||
// Helper section
|
||||
|
||||
@@ -122,9 +122,9 @@ namespace ColumnLynx::Net {
|
||||
if (mSessionIPs.find(candidateIP) == mSessionIPs.end()) {
|
||||
return candidateIP;
|
||||
}
|
||||
|
||||
return 0; // Unavailable
|
||||
}
|
||||
|
||||
return 0; // Unavailable
|
||||
}
|
||||
|
||||
// Lock an IP as assigned to a specific session
|
||||
|
||||
Reference in New Issue
Block a user