luci-base: sys.lua: make timeout optional when parsing conntrack entries

Fixes: #5909
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2022-08-01 11:57:03 +02:00
parent 67cf91b4ae
commit abd9125fbf

View 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 = {