From: Vsevolod Stakhov Date: Sat, 30 Jun 2018 18:56:17 +0000 (+0100) Subject: [Minor] Skip ASN checks for local IPs X-Git-Tag: 1.7.7~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71a419f1baf8c555f92748ba55e0ec1fa827fd22;p=thirdparty%2Frspamd.git [Minor] Skip ASN checks for local IPs --- 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