[Modify] Throw exception
This commit is contained in:
@@ -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 ();
|
||||
|
||||
|
Reference in New Issue
Block a user