Skip to content

Commit e856a2f

Browse files
committed
[Modify] Replace it
1 parent 8614e44 commit e856a2f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

websocket-sharp/Net/EndPointListener.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,8 @@ bool reuseAddress
102102
throw new ArgumentException ("No server certificate could be found.");
103103

104104
_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;
105+
_sslConfig = new ServerSslConfiguration (sslConfig);
106+
_sslConfig.ServerCertificate = cert;
115107
}
116108

117109
_endpoint = endpoint;

0 commit comments

Comments
 (0)