mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-16 21:43:33 +08:00
🦄 Sync 2026-10-29 02:34:23
This commit is contained in:
1 parent
bfd56813e0
commit
e3f5e4d6cc
3 files changed
+19
-4
No files matched your search
@@ -4,6 +4,9 @@ tcp_cca="$(cat /proc/sys/net/ipv4/tcp_congestion_control 2>/dev/null)"
|
||||
nat_mode="disabled"
|
||||
hnat_available=false
|
||||
[ -e /sys/kernel/debug/hnat/hook_toggle ] && hnat_available=true
|
||||
ecm_available=false
|
||||
[ -x /etc/init.d/qca-nss-ecm ] && [ -f /etc/config/ecm ] &&
|
||||
[ -f /usr/share/ucitrack/qca-nss-ecm.json ] && ecm_available=true
|
||||
|
||||
rules="$(iptables-save -t nat 2>/dev/null)"
|
||||
|
||||
@@ -21,4 +24,4 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
printf '{"nat_mode":"%s","tcp_cca":"%s","hnat_available":%s}\n' "$nat_mode" "$tcp_cca" "$hnat_available"
|
||||
printf '{"nat_mode":"%s","tcp_cca":"%s","hnat_available":%s,"ecm_available":%s}\n' "$nat_mode" "$tcp_cca" "$hnat_available" "$ecm_available"
|
||||
@@ -11,7 +11,7 @@
|
||||
"file": [ "read" ],
|
||||
"luci": [ "getConntrackHelpers" ]
|
||||
},
|
||||
"uci": [ "firewall" ]
|
||||
"uci": [ "firewall", "ecm" ]
|
||||
},
|
||||
"write": {
|
||||
"file": {
|
||||
@@ -23,7 +23,7 @@
|
||||
"file": [ "write", "exec" ],
|
||||
"uci": [ "commit" ]
|
||||
},
|
||||
"uci": [ "firewall" ]
|
||||
"uci": [ "firewall", "ecm" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user