[Modify] Polish it
This commit is contained in:
parent
3c9197de96
commit
bd9ac32699
@ -1322,11 +1322,13 @@ namespace WebSocketSharp.Server
|
||||
|
||||
if (_secure) {
|
||||
sslConfig = new ServerSslConfiguration (getSslConfiguration ());
|
||||
string msg;
|
||||
|
||||
if (!checkSslConfiguration (sslConfig, out msg))
|
||||
if (sslConfig.ServerCertificate == null) {
|
||||
var msg = "There is no server certificate for secure connection.";
|
||||
|
||||
throw new InvalidOperationException (msg);
|
||||
}
|
||||
}
|
||||
|
||||
start (sslConfig);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user