style(server.c): comment

This commit is contained in:
Tom MTT. 2022-11-29 10:50:16 +01:00
parent 00e6fe5582
commit 9e011de4ab

View file

@ -103,8 +103,8 @@ int initialize_server()
if (setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &(int){ 1 }, sizeof(int)) < 0) if (setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &(int){ 1 }, sizeof(int)) < 0)
return -1; return -1;
/* Enable dual-stack mode on supported platforms */
#ifndef __OpenBSD__ #ifndef __OpenBSD__
/* Enable dual-stack mode on supported platforms */
verbose(3, " IPV6_V6ONLY..."); verbose(3, " IPV6_V6ONLY...");
if (setsockopt(server, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6_only, sizeof(ipv6_only)) < 0) if (setsockopt(server, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6_only, sizeof(ipv6_only)) < 0)
return -1; return -1;