Pre Merge pull request !77 from 疯狂的狮子Li/N/A
This commit is contained in:
commit
7801f3c3ab
@ -57,7 +57,11 @@ public class NettyChannel {
|
||||
|
||||
static {
|
||||
PORT = Integer.parseInt(System.getProperty(SNAIL_JOB_CLIENT_PORT, String.valueOf(1789)));
|
||||
HOST = System.getProperty(SNAIL_JOB_CLIENT_HOST, NetUtil.getLocalIpStr());
|
||||
String ip = NetUtil.getLocalIpStr();
|
||||
if ("0:0:0:0:0:0:0:1".equals(ip)) {
|
||||
ip = "127.0.0.1";
|
||||
}
|
||||
HOST = System.getProperty(SNAIL_JOB_CLIENT_HOST, ip);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user