addresses:

- blocklist 192.88.88.0/24 6to4 anycast
- invalidate 2002::/16
This commit is contained in:
zzz
2013-05-12 00:24:01 +00:00
parent fcaebb4416
commit 6ceea60c92
3 changed files with 5 additions and 1 deletions

View File

@ -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