From 213ad0bd256f7f1e05dddbe111efbac3bfbf883a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?iBug=20=E2=99=A6?= <7273074+iBug@users.noreply.github.com> Date: Tue, 28 Aug 2018 15:30:33 +0800 Subject: [PATCH] Update code.js --- code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code.js b/code.js index 4e8c2db..c02b31c 100644 --- a/code.js +++ b/code.js @@ -20,7 +20,7 @@ function belongsToSubnet(host, list) { // Match var masked = ip & list[x][1]; - return (masked >>> 0) == (list[x][0] >>> 0); + return (masked ^ list[x][0]) == 0; } var proxy = "__PROXY__";