mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix ss-redir initial creation
This commit is contained in:
parent
728253d324
commit
ffb6a7fe68
1 changed files with 9 additions and 0 deletions
|
@ -57,10 +57,19 @@ if [ "$(uci -q get shadowsocks-libev.hi3)" != "" ]; then
|
|||
uci -q batch <<-EOF >/dev/null
|
||||
set shadowsocks-libev.hi$c.local_port=$port
|
||||
set shadowsocks-libev.hi$c.server=sss0
|
||||
set shadowsocks-libev.hi$((c+1))=ss_redir
|
||||
set shadowsocks-libev.hi$((c+1)).local_address="::"
|
||||
set shadowsocks-libev.hi$((c+1)).local_port=$port
|
||||
set shadowsocks-libev.hi$((c+1)).local_address="::"
|
||||
set shadowsocks-libev.hi$((c+1)).server=sss1
|
||||
set shadowsocks-libev.hi$((c+1)).mode=tcp_and_udp
|
||||
set shadowsocks-libev.hi$((c+1)).timeout=1000
|
||||
set shadowsocks-libev.hi$((c+1)).fast_open=1
|
||||
set shadowsocks-libev.hi$((c+1)).reuse_port=1
|
||||
set shadowsocks-libev.hi$((c+1)).syslog=1
|
||||
set shadowsocks-libev.hi$((c+1)).mptcp=1
|
||||
set shadowsocks-libev.hi$((c+1)).no_delay=1
|
||||
set shadowsocks-libev.hi$((c+1)).verbose=0
|
||||
commit shadowsocks-libev
|
||||
EOF
|
||||
port=$((port+1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue