mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +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_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_host="$(uci -q get shadowsocks-libev.hi.obfs_host)"
|
||||||
set shadowsocks-libev.sss0.obfs_type="$(uci -q get shadowsocks-libev.hi.obfs_type)"
|
set shadowsocks-libev.sss0.obfs_type="$(uci -q get shadowsocks-libev.hi.obfs_type)"
|
||||||
|
commit shadowsocks-libev
|
||||||
EOF
|
EOF
|
||||||
fi
|
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
|
if [ "$(uci -q get ucitrack.@shadowsocks-libev[*1].affects | grep openmptcprouter-vps)" = "" ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
add_list ucitrack.@shadowsocks-libev[-1].affects="openmptcprouter-vps"
|
add_list ucitrack.@shadowsocks-libev[-1].affects="openmptcprouter-vps"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue