From a6a0101d7598c6c1f2709c16835dd2b3c25efa49 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Fri, 21 Sep 2018 17:17:17 +0800 Subject: [PATCH] remove the code that replaces 127.0.0.1 with 0.0.0.0. fix #131 --- .../java/com/taobao/arthas/core/config/Configure.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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; - } - }