First working alpha, version a0.4 #7

Merged
dcrubro merged 22 commits from beta into master 2025-11-18 20:09:11 +00:00
Showing only changes of commit 2343fdd1e2 - Show all commits

View File

@@ -51,7 +51,7 @@ namespace ColumnLynx::Net {
static inline std::string ipToString(uint32_t ip) { static inline std::string ipToString(uint32_t ip) {
struct in_addr addr; struct in_addr addr;
addr.s_addr = ip; // expected in network byte order addr.s_addr = htonl(ip);
char buf[INET_ADDRSTRLEN]; char buf[INET_ADDRSTRLEN];
if (!inet_ntop(AF_INET, &addr, buf, sizeof(buf))) if (!inet_ntop(AF_INET, &addr, buf, sizeof(buf)))