1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2020-06-26 15:03:18 +02:00
parent b907c99915
commit 04229282c0

View file

@ -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"