From: Carsten Rosenberg Date: Mon, 7 Oct 2019 10:38:09 +0000 (+0200) Subject: [Minor] lua_scanners - KAS SE fix port X-Git-Tag: 2.0~55^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3067%2Fhead;p=rspamd.git [Minor] lua_scanners - KAS SE fix port --- 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