Bläddra i källkod

[Minor] Skip ASN checks for local IPs

tags/1.7.7
Vsevolod Stakhov 6 år sedan
förälder
incheckning
71a419f1ba
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      src/plugins/lua/asn.lua

+ 1
- 1
src/plugins/lua/asn.lua Visa fil

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


Laddar…
Avbryt
Spara