mirror of
https://github.com/kenzok8/openwrt-packages.git
synced 2025-01-08 11:37:36 +08:00
update 2023-02-20 20:32:36
This commit is contained in:
parent
0e4022e65e
commit
ec2fcbf016
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user