mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
remove the code that replaces 127.0.0.1 with 0.0.0.0. fix #131
This commit is contained in:
@@ -27,7 +27,7 @@ public class Configure {
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = normalizeIp(ip);
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public int getTelnetPort() {
|
||||
@@ -124,12 +124,4 @@ public class Configure {
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user