From fb791129b6e327e4773d8530e16288cad1872085 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 19 Dec 2017 11:22:40 +0900 Subject: [PATCH] [Modify] Throw exception --- websocket-sharp/Ext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 379ea10c..a66637e4 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -1359,7 +1359,7 @@ namespace WebSocketSharp public static bool IsLocal (this System.Net.IPAddress address) { if (address == null) - return false; + throw new ArgumentNullException ("address"); if (address.Equals (System.Net.IPAddress.Any)) return true;