Permalink
Browse files

- sshttpd: adding patch that was proposed long time ago for v6 bindings

  • Loading branch information...
stealth committed Feb 22, 2017
1 parent 2f1df60 commit 5c5247b4616b7fe0a4dce7288a74e5748bc5bf1c
Showing with 5 additions and 0 deletions.
  1. +5 −0 sshttp.cc
View
@@ -89,6 +89,11 @@ int sshttp::init(int f, const string &laddr, const string &lport, bool tproxy)
}
}
if (af == AF_INET6) {
int one = 1;
setsockopt(sock_fd, SOL_IPV6, IPV6_V6ONLY, &one, sizeof(one));
}
if (bind_local(sock_fd, ai->ai_addr, ai->ai_addrlen, 1) < 0) {
err = NS_Socket::why();
return -1;

0 comments on commit 5c5247b

Please sign in to comment.