Issue #3648 - SSL based on WebSocket behavior (CLIENT vs SERVER)
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
0bc88ec286
commit
631f0cd9f6
|
@ -84,7 +84,10 @@ public class SimpleContainerScope extends ContainerLifeCycle implements WebSocke
|
|||
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue