mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 14:55:13 +08:00
🐤 Sync 2026-10-03 00:12:36
This commit is contained in:
1 parent
ce3df55b24
commit
cb1d978497
58 files changed
+1627
-1018
No files matched your search
@@ -2,6 +2,8 @@
|
||||
|
||||
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
|
||||
|
||||
rules="$(iptables-save -t nat 2>/dev/null)"
|
||||
|
||||
@@ -19,4 +21,4 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
printf '{"nat_mode":"%s","tcp_cca":"%s"}\n' "$nat_mode" "$tcp_cca"
|
||||
printf '{"nat_mode":"%s","tcp_cca":"%s","hnat_available":%s}\n' "$nat_mode" "$tcp_cca" "$hnat_available"
|
||||
Reference in new issue
Block a user