forked from I2P_Developers/i2p.i2p
minor cleanup
This commit is contained in:
@@ -98,7 +98,7 @@ public abstract class TransportUtil {
|
||||
*/
|
||||
public static boolean isIPv6(RouterAddress addr) {
|
||||
// do this the fast way, without calling getIP() to parse the host string
|
||||
String host = addr.getOption(RouterAddress.PROP_HOST);
|
||||
String host = addr.getHost();
|
||||
return host != null && host.contains(":");
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class UDPAddress {
|
||||
_introKey = null;
|
||||
return;
|
||||
}
|
||||
_host = addr.getOption(PROP_HOST);
|
||||
_host = addr.getHost();
|
||||
_port = addr.getPort();
|
||||
try {
|
||||
String mtu = addr.getOption(PROP_MTU);
|
||||
|
||||
Reference in New Issue
Block a user