aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-17 09:10:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-17 09:10:01 +0100
commit67a9b24adc7336370776644cc82f8393601229b1 (patch)
tree1ab1e8b46ed819f3afc148a064bf138bd9c11015 /lualib
parent4f72ad9744deb0141b3ad31722031a98aa5c4a58 (diff)
downloadrspamd-67a9b24adc7336370776644cc82f8393601229b1.tar.gz
rspamd-67a9b24adc7336370776644cc82f8393601229b1.zip
[Minor] Fix `get_tld` selector
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_selectors/transforms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_selectors/transforms.lua b/lualib/lua_selectors/transforms.lua
index e5987a216..6251180ec 100644
--- a/lualib/lua_selectors/transforms.lua
+++ b/lualib/lua_selectors/transforms.lua
@@ -436,7 +436,7 @@ Empty string comes the first argument or 'true', non-empty string comes nil]],
},
['map_type'] = 'string',
['process'] = function(inp, _, _)
- return rspamd_util.get_tld(inp)
+ return rspamd_util.get_tld(inp),'string'
end,
['description'] = 'Extracts tld from a hostname represented as a string',
['args_schema'] = {}