forked from I2P_Developers/i2p.i2p
addresses:
- blocklist 192.88.88.0/24 6to4 anycast - invalidate 2002::/16
This commit is contained in:
@ -111,6 +111,9 @@ public abstract class TransportUtil {
|
||||
return true; // or at least possible to be true
|
||||
} else if (addr.length == 16) {
|
||||
if (allowIPv6) {
|
||||
// disallow 2002::/16 (6to4 RFC 3056)
|
||||
if (addr[0] == 0x20 && addr[1] == 0x02)
|
||||
return false;
|
||||
try {
|
||||
InetAddress ia = InetAddress.getByAddress(addr);
|
||||
return
|
||||
|
Reference in New Issue
Block a user