summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/multimap.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 8b094aa80..aac0f5159 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -24,12 +24,12 @@ local function check_multimap(task)
if rule['type'] == 'ip' then
if rule['cdb'] then
local ip = task:get_from_ip()
- if ip:is_valid() and rule['hash']:lookup(ip) then
+ if ip:is_valid() and rule['hash']:lookup(ip:to_string()) then
task:insert_result(rule['symbol'], 1)
end
else
- local ip = task:get_from_ip():to_number()
- if ip:is_valid() and rule['ips'] and rule['ips']:get_key(ip) then
+ local ip = task:get_from_ip()
+ if ip:is_valid() and rule['ips'] and rule['ips']:get_key(ip:to_number()) then
task:insert_result(rule['symbol'], 1)
end
end