This commit is contained in:
Evgeny committed 2026-03-08 17:40:05 +03:00
1 parent e917ec7ecf
commit 79f77dd72b
3 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -1169,7 +1169,7 @@ int init_connections(struct UTUN_INSTANCE* instance) {
}
// Convert IP to string for logging
char addr_str[INET6_ADDRSTRLEN + 6];
char addr_str[INET6_ADDRSTRLEN + 10];
if (server->ip.ss_family == AF_INET) {
struct sockaddr_in* sin = (struct sockaddr_in*)&server->ip;
snprintf(addr_str, sizeof(addr_str), "%s:%d", ip_to_str(&sin->sin_addr, AF_INET).str, ntohs(sin->sin_port));
Binary file not shown.
Binary file not shown.