remove the code that replaces 127.0.0.1 with 0.0.0.0. fix #131

This commit is contained in:
hengyunabc
2018-09-21 17:17:17 +08:00
parent 29eef89b86
commit a6a0101d75
@@ -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;
}
}