[Modify] Add an empty check
This commit is contained in:
parent
710465a9e9
commit
587bf34c18
@ -82,6 +82,9 @@ namespace WebSocketSharp.Net
|
||||
if (targetHost == null)
|
||||
throw new ArgumentNullException ("targetHost");
|
||||
|
||||
if (targetHost.Length == 0)
|
||||
throw new ArgumentException ("An empty string.", "targetHost");
|
||||
|
||||
_targetHost = targetHost;
|
||||
|
||||
_enabledSslProtocols = SslProtocols.None;
|
||||
|
Loading…
Reference in New Issue
Block a user