1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update shadowsocks luci interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-06-17 18:30:39 +02:00
parent 69275038c5
commit 95288f3b1d
14 changed files with 982 additions and 676 deletions

View file

@ -36,12 +36,6 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
EOF
done
fi
if [ "$(uci -q get shadowsocks-libev.sss0.method)" != "chacha20" ]; then
uci -q batch <<-EOF > /dev/null
set shadowsocks-libev.sss0.method=chacha20
commit shadowsocks-libev
EOF
fi
if [ "$(uci -q get shadowsocks-libev.hi.mode)" != "tcp" ]; then
uci -q batch <<-EOF > /dev/null
set shadowsocks-libev.hi.mode=tcp_and_udp
@ -55,5 +49,14 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
done
fi
fi
if [ "$(uci -q get shadowsocks-libev.hi.obfs)" != "0" ]; then
uci -q batch <<-EOF > /dev/null
set shadowsocks-libev.sss0.obfs=1
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)"
EOF
fi
rm -f /tmp/luci-indexcache
exit 0