[Modify] Add a null check

master
sta 5 years ago
parent 9f6eaebd1f
commit f0dd2a03e8

@ -76,7 +76,11 @@ namespace WebSocketSharp.Net
/// </param>
public ClientSslConfiguration (string targetHost)
{
if (targetHost == null)
throw new ArgumentNullException ("targetHost");
_targetHost = targetHost;
_enabledSslProtocols = SslProtocols.None;
}

Loading…
Cancel
Save