summaryrefslogtreecommitdiff
path: root/udp.c
diff options
context:
space:
mode:
authorFabian Mauchle <fabian.mauchle@switch.ch>2017-09-24 22:03:40 +0200
committerFabian Mauchle <fabian.mauchle@switch.ch>2017-09-24 22:14:59 +0200
commit3dc69a67bb3666a6c2fb31d34c4b864aaf10603f (patch)
tree31cc9d45cb3e4a8946bf8eb41e277fba21bf28b7 /udp.c
parent59b519f6607a24996f82a014c5cd9209746b5103 (diff)
Only set IPV6_IPV6ONLY if it actually is a IPv6 socket.v6only
Set message level back to warning.
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c4
1 files changed, 2 insertions, 2 deletions
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);
}