瀏覽代碼

Merge pull request #592 from jimevans/ipv6-socketopt

Fixing configuration of ports for IPv4/IPv6 dual host sockets
bel2125 7 年之前
父節點
當前提交
c865afb7cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,