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

Fix OMR VPS script

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-07-24 00:00:31 +02:00
parent fd54fbbf03
commit 16b6f1897e

View file

@ -120,12 +120,12 @@ _get_ss_server() {
_set_ss_server_vps() {
local disabled port key method
config_get disabled $1 disabled
[ "$disabled" = "1" ] && echo "Shadowsocks disabled"
[ "$disabled" = "1" ] && return
config_get port $1 server_port
#config_get server $1 server
config_get key $1 key
key="$(echo $key | sed 's/+/-/g; s/\//_/g;')"
[ -z "$key" ] && return "Shadowsocks key not set"
[ -z "$key" ] && return
config_get method $1 method
local current_port current_key current_method
[ -z "$vps_config" ] && vps_config=$(_get_json "config")