|
|
@ -83,10 +83,8 @@ public class PolarisContextProperties {
|
|
|
|
defaultHost = ipAddressSupplier.get();
|
|
|
|
defaultHost = ipAddressSupplier.get();
|
|
|
|
this.localIpAddress = defaultHost;
|
|
|
|
this.localIpAddress = defaultHost;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Integer defaultPort = this.localPort;
|
|
|
|
|
|
|
|
if (this.localPort == null || this.localPort <= 0) {
|
|
|
|
if (this.localPort == null || this.localPort <= 0) {
|
|
|
|
defaultPort = portSupplier.get();
|
|
|
|
this.localPort = portSupplier.get();
|
|
|
|
this.localPort = defaultPort;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
configuration.getGlobal().getAPI().setBindIP(defaultHost);
|
|
|
|
configuration.getGlobal().getAPI().setBindIP(defaultHost);
|
|
|
@ -157,10 +155,10 @@ public class PolarisContextProperties {
|
|
|
|
return "PolarisContextProperties{" +
|
|
|
|
return "PolarisContextProperties{" +
|
|
|
|
"address='" + address + '\'' +
|
|
|
|
"address='" + address + '\'' +
|
|
|
|
", localIpAddress='" + localIpAddress + '\'' +
|
|
|
|
", localIpAddress='" + localIpAddress + '\'' +
|
|
|
|
", localPort=" + localPort +
|
|
|
|
((this.localPort == null || this.localPort <= 0) ? "" : ", localPort=" + localPort) +
|
|
|
|
", enabled=" + enabled +
|
|
|
|
", enabled=" + enabled +
|
|
|
|
", namespace='" + namespace + '\'' +
|
|
|
|
", namespace='" + namespace + '\'' +
|
|
|
|
", service='" + service + '\'' +
|
|
|
|
((StringUtils.isBlank(this.service)) ? "" : ", service='" + service + '\'') +
|
|
|
|
'}';
|
|
|
|
'}';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|