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:
parent
9c72af5309
commit
1bc571dcff
1 changed files with 1 additions and 1 deletions
|
@ -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'"}'
|
||||
|
|
Loading…
Reference in a new issue