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

Commit d7385b0b authored by Deucе's avatar Deucе 👌🏾

Only set IPV6_ONLY if it's #defined.

parent 6021475e
Pipeline #1856 passed with stage
in 9 minutes and 46 seconds
......@@ -60,8 +60,10 @@ int set_socket_options(scfg_t* cfg, SOCKET sock, const char* protocol, char* err
if((fp=iniOpenFile(cfgfile,FALSE))==NULL) {
int optval = 1;
#if defined(IPPROTO_IPV6) && defined(IPV6_V6ONLY)
// Set the only sane choice...
setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&optval, sizeof(optval));
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