]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] lua_scanners - KAS SE fix port 3067/head
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Mon, 7 Oct 2019 10:38:09 +0000 (12:38 +0200)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Mon, 7 Oct 2019 10:38:09 +0000 (12:38 +0200)
lualib/lua_scanners/kaspersky_se.lua

index 50e55f3d4e4e4afd5ffe477749e99f026630bee2..098e33cdf4d91373165ac146a2c7c25d61dcdc7c 100644 (file)
@@ -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