Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ private static void doGetIpv4AddressFromNetworkInterface() throws SocketExceptio
}
}
}

return;
}

/**
Expand Down Expand Up @@ -151,18 +149,18 @@ public static IpPort parseIpPortFromURI(String uriAddress) {
*/
public static String getRealListenAddress(String schema, String address) {
if (address == null) {
return address;
return null;
}
try {
URI originalURI = new URI(schema + "://" + address);
IpPort ipPort = NetUtils.parseIpPort(originalURI.getAuthority());
if (ipPort == null) {
LOGGER.warn("address {} not valid.", address);
LOGGER.error("address {} is not valid.", address);
return null;
}
return originalURI.toString();
} catch (URISyntaxException e) {
LOGGER.warn("address {} not valid.", address);
LOGGER.error("address {} is not valid.", address);
return null;
}
}
Expand Down