mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 04:49:12 +00:00
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,7 +84,10 @@ public class SimpleContainerScope extends ContainerLifeCycle implements WebSocke
|
|||||||
|
|
||||||
if (ssl == null)
|
if (ssl == null)
|
||||||
{
|
{
|
||||||
this.sslContextFactory = new SslContextFactory.Server();
|
if (policy.getBehavior() == WebSocketBehavior.CLIENT)
|
||||||
|
this.sslContextFactory = new SslContextFactory.Client();
|
||||||
|
else if (policy.getBehavior() == WebSocketBehavior.SERVER)
|
||||||
|
this.sslContextFactory = new SslContextFactory.Server();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user