From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Mon, 21 Oct 2024 16:35:03 +0000 (+0200) Subject: use rspamd_ip object in sender_ip to avoid posting ipv4:port X-Git-Tag: 3.11.0~33^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49539ea290046901d1110be2138e71b51857415e;p=thirdparty%2Frspamd.git use rspamd_ip object in sender_ip to avoid posting ipv4:port --- diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index e0e941b60b..f525461aee 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