aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm/dns_tool.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-22 21:05:11 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-22 21:05:11 +0000
commitda36cc644b5cf2afa40b8e26c22edfe64acc3e40 (patch)
tree150ba5045627f273ec6ea2411bb4fe6c5dc0e695 /lualib/rspamadm/dns_tool.lua
parent92bc01e5fe75d64a1b2062fd720f85245063b1e6 (diff)
downloadrspamd-da36cc644b5cf2afa40b8e26c22edfe64acc3e40.tar.gz
rspamd-da36cc644b5cf2afa40b8e26c22edfe64acc3e40.zip
[Minor] Fix spf record dump
Diffstat (limited to 'lualib/rspamadm/dns_tool.lua')
-rw-r--r--lualib/rspamadm/dns_tool.lua2
1 files changed, 2 insertions, 0 deletions
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