update 2025-03-01 00:26:24

This commit is contained in:
kenzok8
2025-03-01 00:26:24 +08:00
parent d7de9f49da
commit bdd4406384
9 changed files with 61 additions and 34 deletions

View File

@@ -76,12 +76,15 @@ reload_rule(){
load_mac_list
}
reload_base_config(){
reload_base_config(){
! test -d /proc/sys/oaf && return
config_load appfilter
config_get work_mode "global" "work_mode"
config_get lan_ifname "global" "lan_ifname"
config_get user_mode "global" "user_mode"
echo "$work_mode" >/proc/sys/oaf/work_mode
echo "$user_mode" >/proc/sys/oaf/user_mode
if [ x"" != x"$lan_ifname" ];then
echo "$lan_ifname" >/proc/sys/oaf/lan_ifname