From 71a419f1baf8c555f92748ba55e0ec1fa827fd22 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 30 Jun 2018 19:56:17 +0100 Subject: [PATCH] [Minor] Skip ASN checks for local IPs --- src/plugins/lua/asn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua index 61572a6009..d8771b677b 100644 --- a/src/plugins/lua/asn.lua +++ b/src/plugins/lua/asn.lua @@ -78,7 +78,7 @@ local function asn_check(task) end local ip = task:get_from_ip() - if not (ip and ip:is_valid()) then return end + if not (ip and ip:is_valid()) or ip:is_local() then return end asn_check_func[options['provider_type']](ip) end -- 2.47.3