I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 249319f7 authored by zzz's avatar zzz
Browse files

* Disallow 2001:db8::/32 (RFC 3849) addresses

parent efe87060
No related branches found
No related tags found
No related merge requests found
...@@ -147,6 +147,9 @@ public abstract class TransportUtil { ...@@ -147,6 +147,9 @@ public abstract class TransportUtil {
// 6bone RFC 2471 // 6bone RFC 2471
if (addr[0] == 0x3f && (addr[1] & 0xff) == 0xfe) if (addr[0] == 0x3f && (addr[1] & 0xff) == 0xfe)
return false; return false;
// Documenation (example) RFC 3849
if (addr[0] == 0x20 && addr[1] == 0x01 && addr[2] == 0x0d && (addr[3] & 0xff) == 0xb8)
return false;
try { try {
InetAddress ia = InetAddress.getByAddress(addr); InetAddress ia = InetAddress.getByAddress(addr);
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment