diff --git a/core/src/main/java/com/taobao/arthas/core/config/Configure.java b/core/src/main/java/com/taobao/arthas/core/config/Configure.java index 2b655abee84..ec886aeb91c 100644 --- a/core/src/main/java/com/taobao/arthas/core/config/Configure.java +++ b/core/src/main/java/com/taobao/arthas/core/config/Configure.java @@ -27,7 +27,7 @@ public String getIp() { } public void setIp(String ip) { - this.ip = normalizeIp(ip); + this.ip = ip; } public int getTelnetPort() { @@ -124,12 +124,4 @@ public static Configure toConfigure(String toString) { return configure; } - private String normalizeIp(String ip){ - if ("127.0.0.1".equals(ip)) { - // bind to all network interfaces, allowing remote connections - return "0.0.0.0"; - } - return ip; - } - }