Update some names

This commit is contained in:
2025-11-27 18:49:53 +01:00
parent 2a2deae022
commit 7d6d9e8ee6
2 changed files with 8 additions and 0 deletions

View File

@@ -66,7 +66,11 @@ int main(int argc, char** argv) {
WintunInitialize(); WintunInitialize();
#endif #endif
#if defined(__APPLE__)
std::shared_ptr<VirtualInterface> tun = std::make_shared<VirtualInterface>("utun0");
#else
std::shared_ptr<VirtualInterface> tun = std::make_shared<VirtualInterface>("lynx0"); std::shared_ptr<VirtualInterface> tun = std::make_shared<VirtualInterface>("lynx0");
#endif
log("Using virtual interface: " + tun->getName()); log("Using virtual interface: " + tun->getName());
LibSodiumWrapper sodiumWrapper = LibSodiumWrapper(); LibSodiumWrapper sodiumWrapper = LibSodiumWrapper();

View File

@@ -66,7 +66,11 @@ int main(int argc, char** argv) {
WintunInitialize(); WintunInitialize();
#endif #endif
#if defined(__APPLE__)
std::shared_ptr<VirtualInterface> tun = std::make_shared<VirtualInterface>("utun0");
#else
std::shared_ptr<VirtualInterface> tun = std::make_shared<VirtualInterface>("lynx0"); std::shared_ptr<VirtualInterface> tun = std::make_shared<VirtualInterface>("lynx0");
#endif
log("Using virtual interface: " + tun->getName()); log("Using virtual interface: " + tun->getName());
// Generate a temporary keypair, replace with actual CA signed keys later (Note, these are stored in memory) // Generate a temporary keypair, replace with actual CA signed keys later (Note, these are stored in memory)