hostmngr: access control handling for disabled

This commit is contained in:
Amit Kumar 2023-11-01 11:22:58 +05:30 committed by Rahul Thakur
parent b0b2874fdf
commit 002dceac35

View file

@ -144,6 +144,11 @@ process_ac_schedule() {
IP_RULE=""
IP_RULE1=""
config_get is_enabled "$access_control" "enable" 1
if [ "$is_enabled" == "0" ]; then
return
fi
mac=$(uci -q get hosts.$access_control.macaddr)
access_policy=$(uci -q get hosts.$access_control.access_policy)