Merge pull request #904 from alibaba/feature_fetch_local_ip
surport hostname
This commit is contained in:
commit
20fbe61562
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user