Only set the host name if configured
@@ -138,7 +138,7 @@ public BaseServer(BaseServerOptions options) {
httpConfig.setSecureScheme("https");
ServerConnector http = new ServerConnector(server, new HttpConnectionFactory(httpConfig));
- http.setHost(getUrl().getHost());
+ options.getHostname().ifPresent(http::setHost);
http.setPort(getUrl().getPort());
http.setIdleTimeout(500000);
