init script supports new ipaddr syntax

This commit is contained in:
练亮斌 2023-02-20 13:22:17 +08:00 committed by GitHub
parent 9a365805c8
commit e2ea8379b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ get_config() {
config_get allow_wan $1 allow_wan 0 config_get allow_wan $1 allow_wan 0
config_load network config_load network
config_get lan_addr lan ipaddr "0.0.0.0" config_get lan_addr lan ipaddr "0.0.0.0"
lan_addr=${lan_addr%%/*}
} }
set_firewall() { set_firewall() {