diff --git a/src/client/main.cpp b/src/client/main.cpp index 2f7ddd7..4718190 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -66,7 +66,11 @@ int main(int argc, char** argv) { WintunInitialize(); #endif +#if defined(__APPLE__) + std::shared_ptr tun = std::make_shared("utun0"); +#else std::shared_ptr tun = std::make_shared("lynx0"); +#endif log("Using virtual interface: " + tun->getName()); LibSodiumWrapper sodiumWrapper = LibSodiumWrapper(); diff --git a/src/server/main.cpp b/src/server/main.cpp index c40eaa4..ce0b939 100644 --- a/src/server/main.cpp +++ b/src/server/main.cpp @@ -66,7 +66,11 @@ int main(int argc, char** argv) { WintunInitialize(); #endif +#if defined(__APPLE__) + std::shared_ptr tun = std::make_shared("utun0"); +#else std::shared_ptr tun = std::make_shared("lynx0"); +#endif log("Using virtual interface: " + tun->getName()); // Generate a temporary keypair, replace with actual CA signed keys later (Note, these are stored in memory)