mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
fix from_ip_port_new()
This commit is contained in:
parent
c0c9cc0411
commit
4bb7367cfa
2
common.h
2
common.h
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user