mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix sent lan IPs
This commit is contained in:
parent
dd7a3a2281
commit
2c98ac014f
1 changed files with 2 additions and 2 deletions
|
@ -498,8 +498,8 @@ _set_lan_ip() {
|
|||
lanip_current="$(echo "$vps_config" | jsonfilter -q -e '@.lan.ips')"
|
||||
lanips="$(uci -q get network.lan.ipaddr)/$(uci -q get network.lan.netmask)"
|
||||
if [ "$lanips" != "/" ] && [ "$lanip_current" != "$lanips" ]; then
|
||||
settings='{"ips" : ["'$lanips'"]}'
|
||||
result=$(_set_json "router" "$settings")
|
||||
settings='{"lanips" : ["'$lanips'"]}'
|
||||
result=$(_set_json "lan" "$settings")
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue