diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-15 15:08:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-15 15:08:47 +0100 |
commit | ca923b9ede9098e7538cbd60d68ea7bcb48408d2 (patch) | |
tree | 7389ec4eb7c51d4682ea68633c9b146ddc78a5ee /lualib/lua_cfg_transform.lua | |
parent | 28aa53b19d0c5ce2e1101680f1f3179b46457396 (diff) | |
download | rspamd-ca923b9ede9098e7538cbd60d68ea7bcb48408d2.tar.gz rspamd-ca923b9ede9098e7538cbd60d68ea7bcb48408d2.zip |
[Minor] Fix check
Diffstat (limited to 'lualib/lua_cfg_transform.lua')
-rw-r--r-- | lualib/lua_cfg_transform.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua index 03c858b8a..5b1ab2e1c 100644 --- a/lualib/lua_cfg_transform.lua +++ b/lualib/lua_cfg_transform.lua @@ -241,8 +241,8 @@ return function(cfg) -- DKIM signing/ARC legacy for _, mod in ipairs({ 'dkim_signing', 'arc' }) do if cfg:at(mod) then - if cfg:at(mod):at('auth_only'):unwrap() ~= nil then - if cfg:at(mod):at('sign_authenticated'):unwrap() ~= nil then + if cfg:at(mod):at('auth_only') then + if cfg:at(mod):at('sign_authenticated') then logger.warnx(rspamd_config, 'both auth_only (%s) and sign_authenticated (%s) for %s are specified, prefer auth_only', cfg:at(mod):at('auth_only'):unwrap(), cfg:at(mod):at('sign_authenticated'):unwrap(), mod) |