aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>2024-10-21 18:35:03 +0200
committerDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>2024-10-21 18:38:40 +0200
commit49539ea290046901d1110be2138e71b51857415e (patch)
tree58a5d44fe8ab45ed0d3c3ce3dd58c8dc7f7a80cf /src
parent611b0b1b175118a6df9445e11f70a3bad6a15ec0 (diff)
downloadrspamd-49539ea290046901d1110be2138e71b51857415e.tar.gz
rspamd-49539ea290046901d1110be2138e71b51857415e.zip
use rspamd_ip object in sender_ip to avoid posting ipv4:port
Diffstat (limited to 'src')
-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