forked from I2P_Developers/i2p.i2p
* UDP: Fix a bug from a blank i2np.udp.host config
causing frequent RouterInfo updates and incorrect addition of introducers, caused by config.jsp handling
This commit is contained in:
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 15;
|
||||
public final static long BUILD = 16;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "-rc";
|
||||
|
@@ -1181,7 +1181,9 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
}
|
||||
|
||||
private boolean explicitAddressSpecified() {
|
||||
return (_context.getProperty(PROP_EXTERNAL_HOST) != null);
|
||||
String h = _context.getProperty(PROP_EXTERNAL_HOST);
|
||||
// Bug in config.jsp prior to 0.7.14, sets an empty host config
|
||||
return h != null && h.length() > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user