From: Vsevolod Stakhov Date: Mon, 1 Feb 2021 17:19:19 +0000 (+0000) Subject: [Minor] Rspamadm: Imply --all if no --ip has been specified X-Git-Tag: 3.0~714 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=279772c1aa1c2e8b531fc79165951320d688242a;p=thirdparty%2Frspamd.git [Minor] Rspamadm: Imply --all if no --ip has been specified --- diff --git a/lualib/rspamadm/dns_tool.lua b/lualib/rspamadm/dns_tool.lua index 8a4825563a..0bdb0a722e 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