summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/ucode/sys.uc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-09-27 22:33:04 +0200
committerJo-Philipp Wich <jo@mein.io>2022-10-25 01:03:37 +0200
commit21dacf2db7899b1e90cb6d4fe6595f1991ba3635 (patch)
tree2f64fa7268273995841346f74b41394d51480464 /modules/luci-base/ucode/sys.uc
parente4960147606af6528f5b92f975e30c61565d53a0 (diff)
luci-base: sys.uc: reliably skip TIME_WAIT connections in conntrack list
The TIME_WAIT indicator might not appear at the beginning of the tuple string in some cases, so match it anywhere. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> [add commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/ucode/sys.uc')
-rw-r--r--modules/luci-base/ucode/sys.uc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/ucode/sys.uc b/modules/luci-base/ucode/sys.uc
index 33a7ac7d76..305499c797 100644
--- a/modules/luci-base/ucode/sys.uc
+++ b/modules/luci-base/ucode/sys.uc
@@ -67,7 +67,7 @@ export function conntrack_list(callback) {
tuples = m[2];
}
- if (index(tuples, 'TIME_WAIT ') === 0)
+ if (index(tuples, 'TIME_WAIT') !== -1)
continue;
let e = {