Browse Source

Merge pull request #592 from jimevans/ipv6-socketopt

Fixing configuration of ports for IPv4/IPv6 dual host sockets
bel2125 7 years ago
parent
commit
c865afb7cf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -13810,7 +13810,7 @@ set_ports_option(struct mg_context *phys_ctx)
 
 		if (ip_version > 4) {
 #if defined(USE_IPV6)
-			if (ip_version == 6) {
+			if (ip_version > 6) {
 				if (so.lsa.sa.sa_family == AF_INET6
 				    && setsockopt(so.sock,
 				                  IPPROTO_IPV6,