fix from_ip_port_new()

This commit is contained in:
wangyu- 2018-07-25 05:16:15 -05:00
parent c0c9cc0411
commit 4bb7367cfa

View File

@ -143,7 +143,7 @@ struct address_t //TODO scope id
} }
else if(type==AF_INET6) 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_port=htons(port);
inner.ipv6.sin6_addr=*((in6_addr*)ip); inner.ipv6.sin6_addr=*((in6_addr*)ip);
} }