From 3dc69a67bb3666a6c2fb31d34c4b864aaf10603f Mon Sep 17 00:00:00 2001 From: Fabian Mauchle Date: Sun, 24 Sep 2017 22:03:40 +0200 Subject: Only set IPV6_IPV6ONLY if it actually is a IPv6 socket. Set message level back to warning. --- udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'udp.c') diff --git a/udp.c b/udp.c index 380db18..a52b3a8 100644 --- a/udp.c +++ b/udp.c @@ -324,7 +324,7 @@ void addserverextraudp(struct clsrvconf *conf) { switch (((struct hostportres *)list_first(conf->hostports)->data)->addrinfo->ai_family) { case AF_INET: if (client4_sock < 0) { - client4_sock = bindtoaddr(srcres, AF_INET, 0, 1); + client4_sock = bindtoaddr(srcres, AF_INET, 0); if (client4_sock < 0) debugx(1, DBG_ERR, "addserver: failed to create client socket for server %s", conf->name); } @@ -332,7 +332,7 @@ void addserverextraudp(struct clsrvconf *conf) { break; case AF_INET6: if (client6_sock < 0) { - client6_sock = bindtoaddr(srcres, AF_INET6, 0, 1); + client6_sock = bindtoaddr(srcres, AF_INET6, 0); if (client6_sock < 0) debugx(1, DBG_ERR, "addserver: failed to create client socket for server %s", conf->name); } -- cgit v1.1