Skip to content

Commit

Permalink
Make warning about failing IPV6_V6ONLY info level.
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
Linus Nordberg committed Aug 1, 2017
1 parent d6f4fab commit 88de41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 88de41d

Please sign in to comment.