luci-base: sys.lua: make timeout optional when parsing conntrack entries
authorJo-Philipp Wich <jo@mein.io>
Mon, 1 Aug 2022 09:57:03 +0000 (11:57 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Aug 2022 09:59:09 +0000 (11:59 +0200)
Fixes: #5909
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit abd9125fbf5e2fadc0c5ae293496680df08e6e1b)

modules/luci-base/luasrc/sys.lua

index 71db04acf84255b13b97bbe431d23d0302729734..e6eb762e48b18db4ff4e23ee0a6edf53a611e7f7 100644 (file)
@@ -295,7 +295,7 @@ function net.conntrack(callback)
                        tuples = rest
                end
 
-               if fam and l3 and l4 and timeout and not tuples:match("^TIME_WAIT ") then
+               if fam and l3 and l4 and not tuples:match("^TIME_WAIT ") then
                        l4 = nixio.getprotobynumber(l4)
 
                        local entry = {