[Modify] Add it
This commit is contained in:
parent
3ef3572f5e
commit
73e8d31d61
@ -352,7 +352,7 @@ namespace WebSocketSharp.Net
|
||||
public ServerSslConfiguration SslConfiguration {
|
||||
get {
|
||||
CheckDisposed ();
|
||||
return _sslConfig ?? (_sslConfig = new ServerSslConfiguration (null));
|
||||
return _sslConfig ?? (_sslConfig = new ServerSslConfiguration ());
|
||||
}
|
||||
|
||||
set {
|
||||
|
@ -79,6 +79,22 @@ namespace WebSocketSharp.Net
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies the parameters from the specified <paramref name="configuration"/> to
|
||||
/// a new instance of the <see cref="ServerSslConfiguration"/> class.
|
||||
/// </summary>
|
||||
/// <param name="configuration">
|
||||
/// A <see cref="ServerSslConfiguration"/> from which to copy.
|
||||
/// </param>
|
||||
public ServerSslConfiguration (ServerSslConfiguration configuration)
|
||||
{
|
||||
_checkCertRevocation = configuration._checkCertRevocation;
|
||||
_clientCertRequired = configuration._clientCertRequired;
|
||||
_clientCertValidationCallback = configuration._clientCertValidationCallback;
|
||||
_enabledSslProtocols = configuration._enabledSslProtocols;
|
||||
_serverCert = configuration._serverCert;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerSslConfiguration"/> class
|
||||
/// with the specified <paramref name="serverCertificate"/>,
|
||||
|
@ -583,7 +583,7 @@ namespace WebSocketSharp.Server
|
||||
public ServerSslConfiguration SslConfiguration {
|
||||
get {
|
||||
if (_sslConfig == null)
|
||||
_sslConfig = new ServerSslConfiguration (null);
|
||||
_sslConfig = new ServerSslConfiguration ();
|
||||
|
||||
return _sslConfig;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user