* Transport: Hamachi address block 5/8 assigned by IANA

This commit is contained in:
zzz
2010-12-02 13:01:25 +00:00
parent d226d6047f
commit 2c8421d8ad
4 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-12-02 zzz
* Streaming: Restore I2PSocketManagerFull as public
(broke jwebcahe ticket #345)
* Transport: Hamachi address block 5/8 assigned by IANA
2010-12-01 dr|z3d 2010-12-01 dr|z3d
* Console: * Console:
- Extensive reworking of ieshim.css for classic theme/Internet Explorer. - Extensive reworking of ieshim.css for classic theme/Internet Explorer.

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 19; public final static long BUILD = 20;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = ""; public final static String EXTRA = "";

View File

@ -66,6 +66,11 @@ public class Addresses {
ia.isLoopbackAddress() || ia.isLoopbackAddress() ||
ia.isMulticastAddress() || ia.isMulticastAddress() ||
ia.isSiteLocalAddress() || ia.isSiteLocalAddress() ||
// Hamachi 5/8 allocated to RIPE (30 November 2010)
// Removed from TransportImpl.isPubliclyRoutable()
// Check moved to here, for now, but will eventually need to
// remove it from here also.
ia.getHostAddress().startsWith("5.") ||
!(ia instanceof Inet4Address)) { !(ia instanceof Inet4Address)) {
// System.err.println("Skipping: " + ia.getHostAddress()); // System.err.println("Skipping: " + ia.getHostAddress());
return; return;

View File

@ -583,7 +583,8 @@ public abstract class TransportImpl implements Transport {
if ((addr[0]&0xFF) >= 224) return false; // no multicast if ((addr[0]&0xFF) >= 224) return false; // no multicast
if ((addr[0]&0xFF) == 0) return false; if ((addr[0]&0xFF) == 0) return false;
if ( ((addr[0]&0xFF) == 169) && ((addr[1]&0xFF) == 254) ) return false; if ( ((addr[0]&0xFF) == 169) && ((addr[1]&0xFF) == 254) ) return false;
if ((addr[0]&0xFF) == 5) return false; // Hamachi // 5/8 allocated to RIPE (30 November 2010)
//if ((addr[0]&0xFF) == 5) return false; // Hamachi
return true; // or at least possible to be true return true; // or at least possible to be true
} else if (addr.length == 16) { } else if (addr.length == 16) {
return false; return false;