aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-07 11:49:21 +0100
committerGitHub <noreply@github.com>2019-10-07 11:49:21 +0100
commit191b95801d57a4adaee605e85fc7e18fd99d6e84 (patch)
tree986fa64f5dfadaee781d0fd081796be64d9f8a30 /lualib
parentd6ea2092cd8f925c62798c5e473bb6c4467c3965 (diff)
parent4feb562db9d6ea7e1828f3d7b9903a5d499b9a35 (diff)
downloadrspamd-191b95801d57a4adaee605e85fc7e18fd99d6e84.tar.gz
rspamd-191b95801d57a4adaee605e85fc7e18fd99d6e84.zip
Merge pull request #3067 from HeinleinSupport/master
[Minor] lua_scanners - KAS SE fix port
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_scanners/kaspersky_se.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/lua_scanners/kaspersky_se.lua b/lualib/lua_scanners/kaspersky_se.lua
index 50e55f3d4..098e33cdf 100644
--- a/lualib/lua_scanners/kaspersky_se.lua
+++ b/lualib/lua_scanners/kaspersky_se.lua
@@ -33,7 +33,7 @@ local function kaspersky_se_config(opts)
local default_conf = {
name = N,
- default_port = 1234,
+ default_port = 9999,
use_https = false,
use_files = false,
timeout = 5.0,
@@ -99,10 +99,10 @@ local function kaspersky_se_check(task, content, digest, rule)
end
if rule.use_https then
url = string.format('https://%s:%d%s', tostring(addr),
- rule.default_port, suffix)
+ addr:get_port(), suffix)
else
url = string.format('http://%s:%d%s', tostring(addr),
- rule.default_port, suffix)
+ addr:get_port(), suffix)
end
return url