Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 899c0e41 authored by Deon George's avatar Deon George

Fix the issue with only 64 bits of an IPv6 being resolved in some scenarios

parent 5ca39151
......@@ -5711,8 +5711,16 @@ NO_SSH:
}
lprintf(LOG_INFO,"%04d * HAPROXY Source [%s]",client_socket,host_ip);
getaddrinfo(host_ip,NULL,NULL,&res);
client_addr.addr = *res->ai_addr;
if ((i=getaddrinfo(host_ip,NULL,NULL,&res)) !=0) {
lprintf(LOG_ERR,"!ERROR resolve_ip %s failed with error %d",host_ip,i);
freeaddrinfo(res);
close_socket(client_socket);
continue;
}
memcpy(&client_addr.addr,res->ai_addr,res->ai_addrlen);
freeaddrinfo(res);
} else {
inet_addrtop(&client_addr,host_ip,sizeof(host_ip));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment