[Modify] Throw exception

This commit is contained in:
sta 2017-12-19 11:22:40 +09:00
parent 4c7d2c9178
commit fb791129b6

View File

@ -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;