Skip to content

Commit 93d1549

Browse files
authored
Merge pull request #1553 from ropalka/UNDERTOW-2345
[UNDERTOW-2345] Use SSLContext from ClientEndpointConfig when provided
2 parents 0ec0746 + 6fab77b commit 93d1549

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

websockets-jsr/src/main/java/io/undertow/websockets/jsr/DefaultWebSocketClientSslProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public XnioSsl getSsl(XnioWorker worker, Endpoint endpoint, ClientEndpointConfig
6363
}
6464
//look for some SSL config
6565
SSLContext sslContext = (SSLContext) cec.getUserProperties().get(SSL_CONTEXT);
66+
if (sslContext == null) {
67+
sslContext = cec.getSSLContext();
68+
}
6669

6770
if (sslContext != null) {
6871
return new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, sslContext);

0 commit comments

Comments
 (0)