Disable flow offloading when oaf is enabled

This commit is contained in:
root 2020-09-06 18:43:19 +08:00
parent f1e291bc36
commit af68350782

View File

@ -35,10 +35,12 @@ load_rule()
if [ x"$enable" != x"1" ];then
echo "appfilter is disabled"
echo 0 >/proc/sys/oaf/enable>/dev/null
uci set firewall.@defaults[0].flow_offloading=1
return 0
else
insmod oaf >/dev/null
echo 1 >/proc/sys/oaf/enable
uci set firewall.@defaults[0].flow_offloading=0
fi
echo "appfilter is enabled"
json_add_int "op" 1
@ -86,3 +88,4 @@ load_mac_list()
clean_rule
load_rule
load_mac_list
fw3 reload