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

Make ss-redir able to listen on multiples ports

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-02-06 08:22:37 +01:00
parent cf7508a58d
commit a64bba3705
3 changed files with 32 additions and 8 deletions

View file

@ -9,7 +9,7 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
set shadowsocks-libev.hi$c=ss_redir
set shadowsocks-libev.hi$c.server=sss0
set shadowsocks-libev.hi$c.local_address="0.0.0.0"
set shadowsocks-libev.hi$c.local_port=1100
set shadowsocks-libev.hi$c.local_port=1101
set shadowsocks-libev.hi$c.mode=tcp_and_udp
set shadowsocks-libev.hi$c.timeout=1000
set shadowsocks-libev.hi$c.fast_open=1
@ -18,9 +18,10 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
set shadowsocks-libev.hi$c.mptcp=1
set shadowsocks-libev.hi$c.no_delay=1
set shadowsocks-libev.hi$c.verbose=0
commit shadowsocks-libev
EOF
done
uci -q set shadowsocks-libev.ss_rules.redir_tcp=all
uci -q commit shadowsocks-libev
fi
fi