Resynchronise with upstream libutp.c, commit 4be31bb7.
This commit is contained in:
parent
434a988165
commit
8018973257
|
@ -45,6 +45,13 @@ from libutp:
|
||||||
|
|
||||||
cd utp_test && make
|
cd utp_test && make
|
||||||
|
|
||||||
|
## Packaging and API
|
||||||
|
|
||||||
|
The libutp API is considered unstable, and probably always will be. We encourage
|
||||||
|
you to test with the version of libutp you have, and be mindful when upgrading.
|
||||||
|
For this reason, it is probably also a good idea to bundle libutp with your
|
||||||
|
application.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
libutp is released under the [MIT][lic] license.
|
libutp is released under the [MIT][lic] license.
|
||||||
|
|
|
@ -120,7 +120,7 @@ struct PACKED_ATTRIBUTE PackedSockAddr {
|
||||||
|
|
||||||
byte get_family() const
|
byte get_family() const
|
||||||
{
|
{
|
||||||
return (IN6_IS_ADDR_V4MAPPED((in6_addr*)_sin6) != 0) ? AF_INET : AF_INET6;
|
return (IN6_IS_ADDR_V4MAPPED(&_in._in6addr) != 0) ? AF_INET : AF_INET6;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const PackedSockAddr& rhs) const
|
bool operator==(const PackedSockAddr& rhs) const
|
||||||
|
|
Loading…
Reference in New Issue