diff options
author | Fabian Mauchle <fabian.mauchle@switch.ch> | 2017-09-24 22:03:40 +0200 |
---|---|---|
committer | Fabian Mauchle <fabian.mauchle@switch.ch> | 2017-09-24 22:14:59 +0200 |
commit | 3dc69a67bb3666a6c2fb31d34c4b864aaf10603f (patch) | |
tree | 31cc9d45cb3e4a8946bf8eb41e277fba21bf28b7 /dtls.c | |
parent | 59b519f6607a24996f82a014c5cd9209746b5103 (diff) |
Only set IPV6_IPV6ONLY if it actually is a IPv6 socket.v6only
Set message level back to warning.
Diffstat (limited to 'dtls.c')
-rw-r--r-- | dtls.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -677,7 +677,7 @@ void addserverextradtls(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); } @@ -685,7 +685,7 @@ void addserverextradtls(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); } |