Ver Fonte

fix from_ip_port_new()

wangyu- há 7 anos atrás
pai
commit
4bb7367cfa
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      common.h

+ 1 - 1
common.h

@@ -143,7 +143,7 @@ struct address_t  //TODO scope id
 		}
 		else if(type==AF_INET6)
 		{
-			inner.ipv6.sin6_family=AF_INET;
+			inner.ipv6.sin6_family=AF_INET6;
 			inner.ipv6.sin6_port=htons(port);
 			inner.ipv6.sin6_addr=*((in6_addr*)ip);
 		}