Skip to content

Commit ff96cb5

Browse files
authored
Fix ssl configuration option
1 parent a4619bc commit ff96cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudnet/src/main/java/de/dytanic/cloudnet/CloudNet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ public synchronized void start() throws Exception {
281281
this.config.getClientSslConfig().isEnabled() ? this.config.getClientSslConfig().toSslConfiguration() : null
282282
);
283283
this.networkServer = new NettyNetworkServer(
284-
this.config.getClientSslConfig().isEnabled() ? this.config.getServerSslConfig().toSslConfiguration() : null,
284+
this.config.getServerSslConfig().isEnabled() ? this.config.getServerSslConfig().toSslConfiguration() : null,
285285
NetworkServerChannelHandlerImpl::new
286286
);
287287
this.httpServer = new NettyHttpServer(
288-
this.config.getClientSslConfig().isEnabled() ? this.config.getWebSslConfig().toSslConfiguration() : null);
288+
this.config.getWebSslConfig().isEnabled() ? this.config.getWebSslConfig().toSslConfiguration() : null);
289289

290290
this.initPacketRegistryListeners();
291291
this.clusterNodeServerProvider.setClusterServers(this.config.getClusterConfig());

0 commit comments

Comments
 (0)