Issue #3648 - SSL based on WebSocket behavior (CLIENT vs SERVER)

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2019-06-06 11:39:55 -05:00
parent 0bc88ec286
commit 631f0cd9f6
1 changed files with 4 additions and 1 deletions

View File

@ -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
{