[Modify] Replace it
This commit is contained in:
parent
8614e44afd
commit
e856a2f194
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user