[Modify] Replace it

This commit is contained in:
sta 2017-05-07 14:28:57 +09:00
parent 8614e44afd
commit e856a2f194

View File

@ -102,16 +102,8 @@ namespace WebSocketSharp.Net
throw new ArgumentException ("No server certificate could be found.");
_secure = true;
_sslConfig =
new ServerSslConfiguration (
cert,
sslConfig.ClientCertificateRequired,
sslConfig.EnabledSslProtocols,
sslConfig.CheckCertificateRevocation
);
_sslConfig.ClientCertificateValidationCallback =
sslConfig.ClientCertificateValidationCallback;
_sslConfig = new ServerSslConfiguration (sslConfig);
_sslConfig.ServerCertificate = cert;
}
_endpoint = endpoint;