minor cleanup

This commit is contained in:
zzz
2015-12-06 16:30:46 +00:00
parent fdc160cf1d
commit 826bb54984
2 changed files with 2 additions and 2 deletions

View File

@@ -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(":");
}

View File

@@ -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);