1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2020-01-13 21:49:33 +01:00
parent dd7a3a2281
commit 2c98ac014f

View file

@ -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
}