Skip to content

Commit

Permalink
Fix use of injected SslContextFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
csunwold authored and electrum committed Oct 1, 2020
1 parent 99d59a5 commit ccf94b6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public enum ClientCertificate {
private ConnectionStats httpConnectionStats;
private ConnectionStats httpsConnectionStats;
private ScheduledExecutorService scheduledExecutorService;
private Optional<SslContextFactory.Server> sslContextFactory = Optional.empty();
private Optional<SslContextFactory.Server> sslContextFactory;

public HttpServer(HttpServerInfo httpServerInfo,
NodeInfo nodeInfo,
Expand Down Expand Up @@ -134,6 +134,8 @@ public HttpServer(HttpServerInfo httpServerInfo,
server = new Server(threadPool);
registerErrorHandler = config.isShowStackTrace();

this.sslContextFactory = maybeSslContextFactory;

if (mbeanServer != null) {
// export jmx mbeans if a server was provided
MBeanContainer mbeanContainer = new MBeanContainer(mbeanServer);
Expand Down

0 comments on commit ccf94b6

Please sign in to comment.