private void initWebServer() {
String httpPort = getFrameworkProp("org.osgi.service.http.port");
String httpsPort = getFrameworkProp("org.osgi.service.http.port.secure");
+ /// TODO make it more generic
+ String httpHost = getFrameworkProp("org.eclipse.equinox.http.jetty.http.host");
try {
if (httpPort != null || httpsPort != null) {
final Hashtable<String, Object> jettyProps = new Hashtable<String, Object>();
jettyProps.put(JettyConstants.SSL_PASSWORD, "changeit");
jettyProps.put(JettyConstants.SSL_WANTCLIENTAUTH, true);
}
+ if(httpHost!=null){
+ jettyProps.put(JettyConstants.HTTP_HOST, httpHost);
+ }
if (configurationAdmin != null) {
// TODO make filter more generic
String filter = "(" + JettyConstants.HTTP_PORT + "=" + httpPort + ")";