增加hostname方式

This commit is contained in:
qingliang.ql 2019-03-14 20:11:30 +08:00
parent 01feb230a3
commit 2ede41f3e8

View File

@ -78,7 +78,7 @@ public class InetUtils {
preferHostnameOverIp = Boolean.getBoolean(SYSTEM_PREFER_HOSTNAME_OVER_IP);
if (!preferHostnameOverIp) {
preferHostnameOverIp = Boolean.parseBoolean(PREFER_HOSTNAME_OVER_IP);
preferHostnameOverIp = Boolean.parseBoolean(PropertyUtil.getProperty(PREFER_HOSTNAME_OVER_IP));
}
if (preferHostnameOverIp) {