aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/elastic.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/elastic.lua')
-rw-r--r--src/plugins/lua/elastic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua
index e0e941b60..f525461ae 100644
--- a/src/plugins/lua/elastic.lua
+++ b/src/plugins/lua/elastic.lua
@@ -495,7 +495,7 @@ local function get_general_metadata(task)
local rspamd_ip = require "rspamd_ip"
local origin_ip = rspamd_ip.from_string(origin)
if origin_ip and origin_ip:is_valid() then
- r.sender_ip = origin -- use string here
+ r.sender_ip = tostring(origin_ip)
end
end