Skip to content

Commit

Permalink
Only set the host name if configured
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Sep 24, 2018
1 parent a242d4d commit 8dd1966
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8dd1966

Please sign in to comment.