Skip to content

Commit

Permalink
remove the code that replaces 127.0.0.1 with 0.0.0.0. fix #131
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Sep 21, 2018
1 parent 29eef89 commit a6a0101
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions core/src/main/java/com/taobao/arthas/core/config/Configure.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public String getIp() {
}

public void setIp(String ip) {
this.ip = normalizeIp(ip);
this.ip = ip;
}

public int getTelnetPort() {
Expand Down Expand Up @@ -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;
}

}

0 comments on commit a6a0101

Please sign in to comment.