[Modify] Add a null check
This commit is contained in:
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…
Reference in New Issue
Block a user