1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Fix default vpn on VPS check

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-08-07 17:23:19 +02:00
parent 9c72af5309
commit 1bc571dcff

View file

@ -584,7 +584,7 @@ _set_vpn_vps() {
local settings
[ -z "$vps_config" ] && vps_config=$(_get_json "config")
[ -z "$vps_config" ] && return
vpn_current="$(echo "$vps_config" | jsonfilter -q -e '@.vps.current')"
vpn_current="$(echo "$vps_config" | jsonfilter -q -e '@.vpn.current')"
vpn="$(uci -q get openmptcprouter.settings.vpn)"
if [ "$vpn_current" != "$vpn" ]; then
settings='{"vpn" : "'$vpn'"}'