Merge pull request #904 from alibaba/feature_fetch_local_ip

surport hostname
This commit is contained in:
Fury Zhu 2019-03-15 10:30:03 +08:00 committed by GitHub
commit 20fbe61562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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