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:
parent
cf7508a58d
commit
a64bba3705
3 changed files with 32 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue