mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 19:43:11 +00:00
* Addresses: Treat RFC 4193 addresses fc00::/7 as local
This commit is contained in:
1 parent
e3f02553fd
commit
be753d7a1a
1 file changed
+4
-1
@@ -148,7 +148,10 @@ public abstract class Addresses {
|
||||
((!ia.isAnyLocalAddress()) &&
|
||||
(!ia.isLoopbackAddress()))) &&
|
||||
(includeSiteLocal ||
|
||||
!ia.isSiteLocalAddress()) &&
|
||||
((!ia.isSiteLocalAddress()) &&
|
||||
// disallow fc00::/8 and fd00::/8 (Unique local addresses RFC 4193)
|
||||
// not recognized as local by InetAddress
|
||||
(ia.getAddress().length != 16 || (ia.getAddress()[0] & 0xfe) != 0xfc))) &&
|
||||
// Hamachi 5/8 allocated to RIPE (30 November 2010)
|
||||
// Removed from TransportImpl.isPubliclyRoutable()
|
||||
// Check moved to here, for now, but will eventually need to
|
||||
|
||||
Reference in new issue
Block a user