[Modify] Throw exception

This commit is contained in:
sta 2017-10-18 15:05:18 +09:00
parent 860165eb14
commit 73a0b51c09

View File

@ -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;
} }
} }