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