update 2023-11-28 16:22:44

This commit is contained in:
github-actions[bot] 2023-11-28 16:22:44 +08:00
parent 1a2f1aafda
commit 8517ea3a95
1 changed files with 9 additions and 0 deletions

View File

@ -32,6 +32,15 @@ start() {
echo disabled=$((!enabled)) >/dev/natflow_ctl
cat /dev/natflow_ctl | grep -q hwnat= && echo hwnat=$hwnat >/dev/natflow_ctl
cat /dev/natflow_ctl | grep -q hwnat_wed_disabled= && echo hwnat_wed_disabled=$((!hwnat_wed)) >/dev/natflow_ctl
if [ "${hwnat_wed}" = "1" ]; then
for p in /sys/module/*/parameters/wed_enable; do
echo Y >$p
done
else
for p in /sys/module/*/parameters/wed_enable; do
echo N >$p
done
fi
echo delay_pkts=$delay_pkts >/dev/natflow_ctl
echo skip_qos_to_slow_path=$skip_qos_to_slow_path >/dev/natflow_ctl