mirror of
https://github.com/transmission/transmission
synced 2025-03-16 08:49:47 +00:00
Resynchronise with upstream libutp.c, commit 4be31bb7.
This commit is contained in:
parent
434a988165
commit
8018973257
2 changed files with 8 additions and 1 deletions
7
third-party/libutp/README.md
vendored
7
third-party/libutp/README.md
vendored
|
@ -45,6 +45,13 @@ from libutp:
|
|||
|
||||
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
|
||||
|
||||
libutp is released under the [MIT][lic] license.
|
||||
|
|
2
third-party/libutp/utp.cpp
vendored
2
third-party/libutp/utp.cpp
vendored
|
@ -120,7 +120,7 @@ struct PACKED_ATTRIBUTE PackedSockAddr {
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue