Skip to content

Commit 47c9c1c

Browse files
authored
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>
1 parent 5cf163d commit 47c9c1c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

client/conf/server.properties.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
# under the License.
1717

1818
# The binding interface for the management server
19-
bind.interface=::
19+
# The management server will listen on all interfaces by default
20+
# bind.interface=::
2021

2122
# The service context path where URL requests should be served
2223
context.path=/client

client/src/org/apache/cloudstack/ServerDaemon.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class ServerDaemon implements Daemon {
8585
private int sessionTimeout = 30;
8686
private boolean httpsEnable = false;
8787
private String accessLogFile = "access.log";
88-
private String bindInterface = "";
88+
private String bindInterface = null;
8989
private String contextPath = "/client";
9090
private String keystoreFile;
9191
private String keystorePassword;
@@ -117,7 +117,7 @@ public void init(final DaemonContext context) {
117117
if (properties == null) {
118118
return;
119119
}
120-
setBindInterface(properties.getProperty(BIND_INTERFACE, ""));
120+
setBindInterface(properties.getProperty(BIND_INTERFACE, null));
121121
setContextPath(properties.getProperty(CONTEXT_PATH, "/client"));
122122
setHttpPort(Integer.valueOf(properties.getProperty(HTTP_PORT, "8080")));
123123
setHttpsEnable(Boolean.valueOf(properties.getProperty(HTTPS_ENABLE, "false")));

0 commit comments

Comments
 (0)