First working alpha, version a0.4. #6

Merged
dcrubro merged 21 commits from dev into beta 2025-11-18 20:07:30 +00:00
3 changed files with 6 additions and 3 deletions
Showing only changes of commit 3ad98b8403 - Show all commits

View File

@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.16)
# If MAJOR is 0, and MINOR > 0, Version is BETA # If MAJOR is 0, and MINOR > 0, Version is BETA
project(ColumnLynx project(ColumnLynx
VERSION 0.0.3 VERSION 0.0.4
LANGUAGES CXX LANGUAGES CXX
) )

View File

@@ -37,7 +37,7 @@ namespace ColumnLynx::Utils {
} }
std::string getVersion() { std::string getVersion() {
return "a0.3"; return "a0.4";
} }
unsigned short serverPort() { unsigned short serverPort() {

View File

@@ -42,8 +42,11 @@ namespace ColumnLynx::Net {
sc.sc_id = ctlInfo.ctl_id; sc.sc_id = ctlInfo.ctl_id;
sc.sc_unit = 0; // utun0 (0 = auto-assign) sc.sc_unit = 0; // utun0 (0 = auto-assign)
if (connect(mFd, (struct sockaddr*)&sc, sizeof(sc)) < 0) if (connect(mFd, (struct sockaddr*)&sc, sizeof(sc)) < 0) {
if (errno == EPERM)
throw std::runtime_error("connect(AF_SYS_CONTROL) failed: Insufficient permissions (try running as root)");
throw std::runtime_error("connect(AF_SYS_CONTROL) failed: " + std::string(strerror(errno))); throw std::runtime_error("connect(AF_SYS_CONTROL) failed: " + std::string(strerror(errno)));
}
// Retrieve actual utun device name // Retrieve actual utun device name
struct sockaddr_storage addr; struct sockaddr_storage addr;