[Modify] Throw exception

This commit is contained in:
sta 2017-10-17 15:40:12 +09:00
parent 9c2b8dcc73
commit 28a72b9c29

View File

@ -591,6 +591,11 @@ namespace WebSocketSharp.Server
/// </value>
public ServerSslConfiguration SslConfiguration {
get {
if (!_secure) {
var msg = "This instance does not provide secure connections.";
throw new InvalidOperationException (msg);
}
if (_sslConfig == null)
_sslConfig = new ServerSslConfiguration ();