From ca923b9ede9098e7538cbd60d68ea7bcb48408d2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Aug 2024 15:08:47 +0100 Subject: [PATCH] [Minor] Fix check --- lualib/lua_cfg_transform.lua | 4 ++-- 1 file 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) -- 2.39.5