[Modify] Polish it
This commit is contained in:
parent
3c9197de96
commit
bd9ac32699
@ -1322,10 +1322,12 @@ namespace WebSocketSharp.Server
|
|||||||
|
|
||||||
if (_secure) {
|
if (_secure) {
|
||||||
sslConfig = new ServerSslConfiguration (getSslConfiguration ());
|
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);
|
throw new InvalidOperationException (msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
start (sslConfig);
|
start (sslConfig);
|
||||||
|
Loading…
Reference in New Issue
Block a user