[Modify] Throw exception
This commit is contained in:
parent
4c7d2c9178
commit
fb791129b6
@ -1359,7 +1359,7 @@ namespace WebSocketSharp
|
|||||||
public static bool IsLocal (this System.Net.IPAddress address)
|
public static bool IsLocal (this System.Net.IPAddress address)
|
||||||
{
|
{
|
||||||
if (address == null)
|
if (address == null)
|
||||||
return false;
|
throw new ArgumentNullException ("address");
|
||||||
|
|
||||||
if (address.Equals (System.Net.IPAddress.Any))
|
if (address.Equals (System.Net.IPAddress.Any))
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user