[Modify] Throw exception

master
sta 8 years ago
parent 9c2b8dcc73
commit 28a72b9c29

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

Loading…
Cancel
Save