[Modify] Throw exception
This commit is contained in:
parent
860165eb14
commit
73a0b51c09
@ -630,6 +630,11 @@ namespace WebSocketSharp.Server
|
|||||||
/// </value>
|
/// </value>
|
||||||
public ServerSslConfiguration SslConfiguration {
|
public ServerSslConfiguration SslConfiguration {
|
||||||
get {
|
get {
|
||||||
|
if (!_secure) {
|
||||||
|
var msg = "This instance does not provide secure connections.";
|
||||||
|
throw new InvalidOperationException (msg);
|
||||||
|
}
|
||||||
|
|
||||||
return _listener.SslConfiguration;
|
return _listener.SslConfiguration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user