Commit bc80c614 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Check for AF_INET6 all the time

parent ab84151b
......@@ -194,9 +194,10 @@ static void rootprocess (int fd)
const int val = 1;
setsockopt (sock, SOL_SOCKET, SO_REUSEADDR, &val, sizeof (val));
#ifdef AF_INET6
if (ss.ss_family == AF_INET6)
setsockopt (sock, IPPROTO_IPV6, IPV6_V6ONLY, &val, sizeof (val));
if (bind (sock, (struct sockaddr *)&ss, len) == 0)
send_fd (fd, sock);
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