forked from I2P_Developers/i2p.i2p
Fix compile error; history for prop; -2
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 = 1;
|
||||
public final static long BUILD = 2;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
@ -7,6 +7,7 @@ import java.util.Map;
|
||||
import net.i2p.data.Base64;
|
||||
import net.i2p.data.router.RouterAddress;
|
||||
import net.i2p.data.SessionKey;
|
||||
import net.i2p.router.transport.TransportUtil;
|
||||
import net.i2p.util.LHMCache;
|
||||
import net.i2p.util.SystemVersion;
|
||||
|
||||
@ -100,7 +101,7 @@ class UDPAddress {
|
||||
int p;
|
||||
try {
|
||||
p = Integer.parseInt(port);
|
||||
if (p < UDPTransport.MIN_PEER_PORT || p > 65535) continue;
|
||||
if (!TransportUtil.isValidPort(p)) continue;
|
||||
} catch (NumberFormatException nfe) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user