client: mgmt server listen default to 0.0.0.0 (#2907)

This makes the management server listen on all interfaces by default.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2018-10-22 20:00:51 +05:30 committed by GitHub
parent 5cf163d888
commit 47c9c1cb58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,8 @@
# under the License.
# The binding interface for the management server
bind.interface=::
# The management server will listen on all interfaces by default
# bind.interface=::
# The service context path where URL requests should be served
context.path=/client

View File

@ -85,7 +85,7 @@ public class ServerDaemon implements Daemon {
private int sessionTimeout = 30;
private boolean httpsEnable = false;
private String accessLogFile = "access.log";
private String bindInterface = "";
private String bindInterface = null;
private String contextPath = "/client";
private String keystoreFile;
private String keystorePassword;
@ -117,7 +117,7 @@ public class ServerDaemon implements Daemon {
if (properties == null) {
return;
}
setBindInterface(properties.getProperty(BIND_INTERFACE, ""));
setBindInterface(properties.getProperty(BIND_INTERFACE, null));
setContextPath(properties.getProperty(CONTEXT_PATH, "/client"));
setHttpPort(Integer.valueOf(properties.getProperty(HTTP_PORT, "8080")));
setHttpsEnable(Boolean.valueOf(properties.getProperty(HTTPS_ENABLE, "false")));