diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-03-13 14:33:27 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-03-13 14:33:27 +0200 |
commit | 67b7949e35ebe460603aa44e1f15a89c1dbcac45 (patch) | |
tree | b76b8f41cd25e0dc34f57b44ea103a0b4e92679d /src/plugins | |
parent | 53fe13d3d83148c069055214b8f1d14322a63e88 (diff) | |
download | rspamd-67b7949e35ebe460603aa44e1f15a89c1dbcac45.tar.gz rspamd-67b7949e35ebe460603aa44e1f15a89c1dbcac45.zip |
[Minor] Fix tests
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/whitelist.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index f8c5b1b9b..7b6a4c7ba 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -46,11 +46,13 @@ local function whitelist_cb(symbol, rule, task) return true,mult end elseif rule['maps'] then - for map, mult in pairs(rule['maps']) do + for map, mmult in pairs(rule['maps']) do local val = map:get_key(dom) if val then if #val > 0 then mult = tonumber(val) + else + mult = mmult end table.insert(domains, dom) return true,mult |