mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Set a server name for ss_rules default
This commit is contained in:
parent
b907c99915
commit
04229282c0
1 changed files with 9 additions and 0 deletions
|
@ -73,9 +73,18 @@ if [ "$(uci -q get shadowsocks-libev.hi.obfs)" = "1" ]; then
|
|||
set shadowsocks-libev.sss0.obfs_plugin="$(uci -q get shadowsocks-libev.hi.obfs_plugin)"
|
||||
set shadowsocks-libev.sss0.obfs_host="$(uci -q get shadowsocks-libev.hi.obfs_host)"
|
||||
set shadowsocks-libev.sss0.obfs_type="$(uci -q get shadowsocks-libev.hi.obfs_type)"
|
||||
commit shadowsocks-libev
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ "$(uci -q get shadowsocks-libev.ss_rules.server)" = "" ]; then
|
||||
uci -q batch <<-EOF > /dev/null
|
||||
set shadowsocks-libev.ss_rules.server="sss0"
|
||||
commit shadowsocks-libev
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
||||
if [ "$(uci -q get ucitrack.@shadowsocks-libev[*1].affects | grep openmptcprouter-vps)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add_list ucitrack.@shadowsocks-libev[-1].affects="openmptcprouter-vps"
|
||||
|
|
Loading…
Reference in a new issue