commit da36cc6: [Minor] Fix spf record dump

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Dec 22 21:07:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-12-22 21:05:11 +0000
URL: https://github.com/rspamd/rspamd/commit/da36cc644b5cf2afa40b8e26c22edfe64acc3e40 (HEAD -> master)

[Minor] Fix spf record dump

---
 lualib/rspamadm/dns_tool.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lualib/rspamadm/dns_tool.lua b/lualib/rspamadm/dns_tool.lua
index 91a726d09..8a4825563 100644
--- a/lualib/rspamadm/dns_tool.lua
+++ b/lualib/rspamadm/dns_tool.lua
@@ -164,6 +164,8 @@ local function spf_handler(opts)
       local result, flag_or_policy, error_or_addr
       if opts.ip then
         result, flag_or_policy, error_or_addr = record:check_ip(opts.ip)
+      elseif opts.all then
+        result = true
       end
       if opts.ip and not opts.all then
         if result then


More information about the Commits mailing list