[Modify] Add a null check

This commit is contained in:
sta 2020-11-25 19:37:44 +09:00
parent 9f6eaebd1f
commit f0dd2a03e8

View File

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