]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
lua-output-http: make ports an int instead of a float
authorJason Ish <ish@unx.ca>
Mon, 25 Sep 2017 08:40:02 +0000 (09:40 +0100)
committerJason Ish <ish@unx.ca>
Mon, 25 Sep 2017 08:40:02 +0000 (09:40 +0100)
lua-output-http/expected/http_lua.log
lua-output-http/http.lua

index 9a531a6401960e28cad87349b7f19ba32e1b3306..523f8b5f3df07d7c74d841ddeeedc0527d0e36f9 100644 (file)
@@ -1 +1 @@
-10/06/2015-15:16:43.137833 codemonkey.net [**] /base64-hello-world.txt [**] curl/7.40.0 [**] 10.16.1.11:59733.0 -> 104.131.202.103:80.0
+10/06/2015-15:16:43.137833 codemonkey.net [**] /base64-hello-world.txt [**] curl/7.40.0 [**] 10.16.1.11:59733 -> 104.131.202.103:80
index 4b8cdb6a3ab776a7f1f5ced1a9ce18e6c2f48016..9d60f913941bea897d00d27febda5b032576e025 100644 (file)
@@ -37,8 +37,8 @@ function log(args)
     ipver, srcip, dstip, proto, sp, dp = SCFlowTuple()
 
     file:write (ts .. " " .. http_host .. " [**] " .. http_uri .. " [**] " ..
-           http_ua .. " [**] " .. srcip .. ":" .. sp .. " -> " ..
-           dstip .. ":" .. dp .. "\n")
+           http_ua .. " [**] " .. srcip .. ":" .. math.floor(sp) .. " -> " ..
+           dstip .. ":" .. math.floor(dp) .. "\n")
     file:flush()
 
     http = http + 1