mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
luci-base: update sys.uc conntrack_list to use /usr/sbin/conntrack
Update sys.uc so that ubus luci->getConntrackList method is optionally populated by /usr/sbin/conntrack application if /proc/net/nf_conntrack is not available. Signed-off-by: James <jpfox156@yahoo.com.au>
This commit is contained in:
@@ -44,7 +44,10 @@ export function conntrack_list(callback) {
|
||||
etcpr.close();
|
||||
}
|
||||
|
||||
const nfct = open('/proc/net/nf_conntrack', 'r');
|
||||
let nfct = open('/proc/net/nf_conntrack', 'r');
|
||||
if (! nfct) {
|
||||
nfct = popen('/usr/sbin/conntrack -L -o extended', 'r');
|
||||
}
|
||||
let connt;
|
||||
|
||||
if (nfct) {
|
||||
|
||||
Reference in New Issue
Block a user