We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8614e44 commit e856a2fCopy full SHA for e856a2f
websocket-sharp/Net/EndPointListener.cs
@@ -102,16 +102,8 @@ bool reuseAddress
102
throw new ArgumentException ("No server certificate could be found.");
103
104
_secure = true;
105
- _sslConfig =
106
- new ServerSslConfiguration (
107
- cert,
108
- sslConfig.ClientCertificateRequired,
109
- sslConfig.EnabledSslProtocols,
110
- sslConfig.CheckCertificateRevocation
111
- );
112
-
113
- _sslConfig.ClientCertificateValidationCallback =
114
- sslConfig.ClientCertificateValidationCallback;
+ _sslConfig = new ServerSslConfiguration (sslConfig);
+ _sslConfig.ServerCertificate = cert;
115
}
116
117
_endpoint = endpoint;
0 commit comments