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:17 +0000 (12:18 +0200)
commit531c0ecff2ca57c4bc0aacee66a0746814fefc78
tree1d7d24bea17f5a2b52630138bf02243046ac9842
parent180d39dcd2427e3c32c0ec7ecc3c7bfb48c0d0ab
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>
modules/luci-base/luasrc/sys.lua