Browse Source

[Minor] Skip ASN checks for local IPs

tags/1.7.7
Vsevolod Stakhov 5 years ago
parent
commit
71a419f1ba
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/plugins/lua/asn.lua

+ 1
- 1
src/plugins/lua/asn.lua View File

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


Loading…
Cancel
Save