luci-base: sys.lua: fix parsing conntrack entries without timeout
authorJo-Philipp Wich <jo@mein.io>
Fri, 29 Apr 2022 10:16:19 +0000 (12:16 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 29 Apr 2022 10:18:35 +0000 (12:18 +0200)
commit66994a580e97217daeca12e1c151973bbc41c386
tree37ed41534c01752ee0102c578dccee73680e7db5
parent4c263cff5cc2b707c770790a9c7ef87faf735550
luci-base: sys.lua: fix parsing conntrack entries without timeout

Flow offloaded conntrack entries carry no timeout value and trip up the
record parsing routine. Adjust the code to properly deal with such entries.

Ref: https://forum.openwrt.org/t/offloading-breaks-connections-list/126423
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 531c0ecff2ca57c4bc0aacee66a0746814fefc78)
modules/luci-base/luasrc/sys.lua