Added basic virtual interface implementation, needs testing. Added Wintun licenses.

This commit is contained in:
2025-11-12 19:14:44 +01:00
parent 5a72895f8d
commit 6fceb84930
8 changed files with 834 additions and 1 deletions

View File

@@ -10,9 +10,11 @@
#include <columnlynx/client/net/tcp/tcp_client.hpp>
#include <columnlynx/client/net/udp/udp_client.hpp>
#include <cxxopts/cxxopts.hpp>
#include <columnlynx/common/net/virtual_interface.hpp>
using asio::ip::tcp;
using namespace ColumnLynx::Utils;
using namespace ColumnLynx::Net;
volatile sig_atomic_t done = 0;
@@ -56,6 +58,13 @@ int main(int argc, char** argv) {
log("ColumnLynx Client, Version " + getVersion());
log("This software is licensed under the GPLv2 only OR the GPLv3. See LICENSES/ for details.");
#if defined(__WIN32__)
WintunInitialize();
#endif
VirtualInterface tun("columnlynxtun0");
log("Using virtual interface: " + tun.getName());
LibSodiumWrapper sodiumWrapper = LibSodiumWrapper();
std::array<uint8_t, 32> aesKey = {0}; // Defualt zeroed state until modified by handshake