]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Rspamadm: Imply --all if no --ip has been specified
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 1 Feb 2021 17:19:19 +0000 (17:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 1 Feb 2021 17:19:19 +0000 (17:19 +0000)
lualib/rspamadm/dns_tool.lua

index 8a4825563a9ddc6b8d18c39aecc8de2e6a19632c..0bdb0a722ecbd0ef89277eb2bf2db0151947f209 100644 (file)
@@ -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