提交 25f0a14a authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 f5c2a32e
...@@ -58,7 +58,7 @@ public class NetUtils { ...@@ -58,7 +58,7 @@ public class NetUtils {
* @param address the address * @param address the address
* @return the host address * @return the host address
*/ */
public static String getHostAddress(InetAddress address) { private static String getHostAddress(InetAddress address) {
String host = address.getHostAddress(); String host = address.getHostAddress();
if (address instanceof Inet6Address) { if (address instanceof Inet6Address) {
if (host.indexOf(':') >= 0 && !host.startsWith("[")) { if (host.indexOf(':') >= 0 && !host.startsWith("[")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论