aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_maps.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-09 12:04:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-09 12:04:40 +0100
commit462fd37953cc83a133d9cbc872807adeea581375 (patch)
tree65414bf9a90c802aecb2d321a2750effa678dafc /lualib/lua_maps.lua
parent20864ad07d5dbbaf6cdd242ff33b37a6b3f2e4cb (diff)
downloadrspamd-462fd37953cc83a133d9cbc872807adeea581375.tar.gz
rspamd-462fd37953cc83a133d9cbc872807adeea581375.zip
[Minor] Lua_maps: Allow to add glob maps
Diffstat (limited to 'lualib/lua_maps.lua')
-rw-r--r--lualib/lua_maps.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_maps.lua b/lualib/lua_maps.lua
index 41ab2552c..c8cffa3c8 100644
--- a/lualib/lua_maps.lua
+++ b/lualib/lua_maps.lua
@@ -94,7 +94,7 @@ local function rspamd_map_add_from_ucl(opt, mtype, description)
return ret
end
end
- elseif mtype == 'regexp' then
+ elseif mtype == 'regexp' or mtype == 'glob' then
-- Plain table
local map = rspamd_config:add_map{
type = mtype,
@@ -165,7 +165,7 @@ end
-- Returns true if map was added or nil
-- @param {string} mname config section to use
-- @param {string} optname option name to use
--- @param {string} mtype type of map ('set', 'hash', 'radix', 'regexp')
+-- @param {string} mtype type of map ('set', 'hash', 'radix', 'regexp', 'glob')
-- @param {string} description human-readable description of map
-- @return {bool} true on success, or `nil`
--]]