summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-07-30 23:34:57 +0200
committerLinus Nordberg <linus@nordu.net>2017-08-01 18:25:37 +0200
commit88de41d15164364d7faaa9c61c6d85ab9c5f3125 (patch)
tree2c5a12aeb9614412c4e480f3a8829f129652e273 /util.c
parentd6f4fab82c4773ce0d5e7229d3d9309979acaac9 (diff)
Make warning about failing IPV6_V6ONLY info level.
We might have a bug where bindtoaddr() tries to set V6ONLY on IPv4 sockets. Until that's been resolved, don't alarm users on debug level 'warning'.
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index d9c3839..876cb6c 100644
--- a/util.c
+++ b/util.c
@@ -155,7 +155,7 @@ int bindtoaddr(struct addrinfo *addrinfo, int family, int reuse, int v6only) {
#ifdef IPV6_V6ONLY
if (v6only)
if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) == -1)
- debugerrno(errno, DBG_WARN, "Failed to set IPV6_V6ONLY");
+ debugerrno(errno, DBG_INFO, "Failed to set IPV6_V6ONLY");
#endif
if (!bind(s, res->ai_addr, res->ai_addrlen))
return s;