summaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners/kaspersky_se.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_scanners/kaspersky_se.lua')
-rw-r--r--lualib/lua_scanners/kaspersky_se.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lualib/lua_scanners/kaspersky_se.lua b/lualib/lua_scanners/kaspersky_se.lua
index 5e0f2eaad..bd0a01ffa 100644
--- a/lualib/lua_scanners/kaspersky_se.lua
+++ b/lualib/lua_scanners/kaspersky_se.lua
@@ -118,6 +118,11 @@ local function kaspersky_se_check(task, content, digest, rule, maybe_part)
['X-KAV-Timeout'] = tostring(rule.timeout * 1000),
}
+ local ip = task:get_from_ip()
+ if ip and ip:is_valid() then
+ hdrs['X-KAV-SourceIP'] = tostring(ip)
+ end
+
if task:has_from() then
hdrs['X-KAV-ObjectURL'] = string.format('[from:%s]', task:get_from()[1].addr)
end