mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 15:33:59 +00:00
remove the code that replaces 127.0.0.1 with 0.0.0.0. fix #131
This commit is contained in:
1 parent
29eef89b86
commit
a6a0101d75
1 file changed
+1
-9
@@ -27,7 +27,7 @@ public class Configure {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setIp(String ip) {
|
public void setIp(String ip) {
|
||||||
this.ip = normalizeIp(ip);
|
this.ip = ip;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTelnetPort() {
|
public int getTelnetPort() {
|
||||||
@@ -124,12 +124,4 @@ public class Configure {
|
|||||||
return 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