]> source.dussan.org Git - rspamd.git/commitdiff
Зreventing complications for ipv6 in rbl module 167/head
authorAlexey AL <AlexeySa@users.noreply.github.com>
Sat, 14 Feb 2015 10:50:20 +0000 (13:50 +0300)
committerAlexey AL <AlexeySa@users.noreply.github.com>
Sat, 14 Feb 2015 10:50:20 +0000 (13:50 +0300)
src/plugins/lua/rbl.lua

index 6950ab7cb97a9aaafd85f22522039ca20536736a..4d15eddc43ce6073327ceb3f9514770e55205920 100644 (file)
@@ -71,7 +71,7 @@ local function is_private_ip(rip)
         return true
       end
     end
-  else
+  elseif rip:get_version() == 6 then
     if rip == ipv6_loopback then
       return true
     end