mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Fix retrieve values from VPS for ShadowSocks
This commit is contained in:
parent
4f56f86539
commit
8189f51b25
1 changed files with 6 additions and 1 deletions
|
@ -245,7 +245,12 @@ _set_mptcp_vps() {
|
|||
_set_ss_redir() {
|
||||
local option=$2
|
||||
local value=$3
|
||||
uci -q set shadowsocks-libev.$1.$2=$3
|
||||
if [ "$value" = "true" ]; then
|
||||
value=1
|
||||
elif [ "$value" = "false" ]; then
|
||||
value=0
|
||||
fi
|
||||
uci -q set shadowsocks-libev.$1.$option=$value
|
||||
}
|
||||
|
||||
_set_config_from_vps() {
|
||||
|
|
Loading…
Reference in a new issue