[Modify] Create it if secure
This commit is contained in:
parent
65696a126c
commit
bfeac38f0c
@ -766,8 +766,9 @@ namespace WebSocketSharp.Server
|
||||
|
||||
private ServerSslConfiguration getSslConfiguration ()
|
||||
{
|
||||
var sslConfig = _sslConfig;
|
||||
return sslConfig != null ? new ServerSslConfiguration (sslConfig) : null;
|
||||
return _secure && _sslConfig != null
|
||||
? new ServerSslConfiguration (_sslConfig)
|
||||
: null;
|
||||
}
|
||||
|
||||
private void init (
|
||||
|
Loading…
Reference in New Issue
Block a user