Browse Source

[Minor] cfg_transform - fix actions sanity check

pull/3693/head
Carsten Rosenberg 5 years ago
parent
commit
82c887e6ec
  1. 3
      lualib/lua_cfg_transform.lua

3
lualib/lua_cfg_transform.lua

@ -367,7 +367,8 @@ return function(cfg)
-- Perform sanity check for actions
local actions_defs = {'no action', 'no_action', -- In case if that's added
'greylist', 'add header', 'add_header',
'rewrite subject', 'rewrite_subject', 'reject'}
'rewrite subject', 'rewrite_subject', 'quarantine',
'reject', 'discard'}
if not cfg.actions['no action'] and not cfg.actions['no_action'] and
not cfg.actions['accept'] then

Loading…
Cancel
Save