Merge pull request #3744 from eclipse/jetty-9.4.x-3648-websocket-client-ssl
Issue #3648 - SSL based on WebSocket behavior (CLIENT vs SERVER)
This commit is contained in:
commit
a847f54cd2
|
@ -84,6 +84,9 @@ public class SimpleContainerScope extends ContainerLifeCycle implements WebSocke
|
|||
|
||||
if (ssl == null)
|
||||
{
|
||||
if (policy.getBehavior() == WebSocketBehavior.CLIENT)
|
||||
this.sslContextFactory = new SslContextFactory.Client();
|
||||
else if (policy.getBehavior() == WebSocketBehavior.SERVER)
|
||||
this.sslContextFactory = new SslContextFactory.Server();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue