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