diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-09 17:22:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-09 17:27:31 +0100 |
commit | 6ecdf48de0f269be6924ec128fc8400cfba293a3 (patch) | |
tree | b49a84c77b5cec639e8982e774899a9f7c287ef4 /lualib/lua_dkim_tools.lua | |
parent | 18921707b3f8b63ebe62c8bd462938da6f5fd996 (diff) | |
download | rspamd-6ecdf48de0f269be6924ec128fc8400cfba293a3.tar.gz rspamd-6ecdf48de0f269be6924ec128fc8400cfba293a3.zip |
[Minor] Try to fix selector setting
Diffstat (limited to 'lualib/lua_dkim_tools.lua')
-rw-r--r-- | lualib/lua_dkim_tools.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua index 151f34e73..3c9637f87 100644 --- a/lualib/lua_dkim_tools.lua +++ b/lualib/lua_dkim_tools.lua @@ -166,7 +166,11 @@ local function prepare_dkim_signing(N, task, settings) end p.key = task:get_mempool():get_variable(key_var) - p.selector = task:get_mempool():get_variable(selector_var) + local selector_override = task:get_mempool():get_variable(selector_var) + + if selector_override then + p.selector = selector_override + end if (not p.key or not p.selector) and (not (settings.try_fallback or settings.use_redis or settings.selector_map |