update 2023-02-20 20:32:36

This commit is contained in:
github-actions[bot] 2023-02-20 20:32:36 +08:00
parent 0e4022e65e
commit ec2fcbf016

View File

@ -17,6 +17,11 @@ get_config() {
config_get allow_wan $1 allow_wan 0
config_load network
config_get lan_addr lan ipaddr "0.0.0.0"
if echo "${lan_addr}" | grep -Fq ' '; then
lan_addr="0.0.0.0"
else
lan_addr=${lan_addr%%/*}
fi
}
set_firewall() {