forked from premiere/premiere-libtorrent
treat unique local addresses as local
These addresses are not globally routable so they should be considered local.
This commit is contained in:
parent
626ce25225
commit
d4986f878f
|
@ -71,7 +71,9 @@ namespace libtorrent {
|
|||
{
|
||||
return a.to_v6().is_loopback()
|
||||
|| a.to_v6().is_link_local()
|
||||
|| a.to_v6().is_multicast_link_local();
|
||||
|| a.to_v6().is_multicast_link_local()
|
||||
// fc00::/7, unique local address
|
||||
|| (a.to_v6().to_bytes()[0] & 0xfe) == 0xfc;
|
||||
}
|
||||
#endif
|
||||
address_v4 a4 = a.to_v4();
|
||||
|
|
Loading…
Reference in New Issue