aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm/dns_tool.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-01 17:19:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-01 17:19:19 +0000
commit279772c1aa1c2e8b531fc79165951320d688242a (patch)
treef141f153441e02dc06bed34d6097c17aa8076359 /lualib/rspamadm/dns_tool.lua
parent0effbd0b4d9dd5b7a7ad888968cea07a2566670f (diff)
downloadrspamd-279772c1aa1c2e8b531fc79165951320d688242a.tar.gz
rspamd-279772c1aa1c2e8b531fc79165951320d688242a.zip
[Minor] Rspamadm: Imply --all if no --ip has been specified
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 8a4825563..0bdb0a722 100644
--- a/lualib/rspamadm/dns_tool.lua
+++ b/lualib/rspamadm/dns_tool.lua
@@ -95,6 +95,8 @@ local function spf_handler(opts)
if opts.ip then
opts.ip = rspamd_ip.fromstring(opts.ip)
task:set_from_ip(opts.ip)
+ else
+ opts.all = true
end
if opts.from then