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

Fix UDP default support

This commit is contained in:
Ycarus 2018-03-14 09:13:50 +01:00
parent b5a76da96d
commit 20bd0b22a1
2 changed files with 16 additions and 3 deletions

View file

@ -1,12 +1,12 @@
#!/bin/sh
NBCPU=$(grep -c '^processor' /proc/cpuinfo | tr -d "\n")
if [ "$NBCPU" -gt 1 ]; then
for c in $(seq 2 $NBCPU); do
if [ "$NBCPU" -gt 2 ]; then
for c in $(seq 3 $NBCPU); do
uci -q batch <<-EOF >/dev/null
set shadowsocks-libev.hi$c=ss_redir
set shadowsocks-libev.hi$c.server=sss0
set shadowsocks-libev.hi$c.local_address="::"
set shadowsocks-libev.hi$c.local_address="0.0.0.0"
set shadowsocks-libev.hi$c.local_port=1100
set shadowsocks-libev.hi$c.mode=tcp_and_udp
set shadowsocks-libev.hi$c.timeout=60

View file

@ -8,6 +8,19 @@ config ss_redir hi
option verbose 0
option reuse_port 1
option mptcp 1
option ipv6_first 1
config ss_redir hi2
option server 'sss0'
option local_address '0.0.0.0'
option local_port '1100'
option mode 'tcp_and_udp'
option timeout '60'
option fast_open 1
option verbose 0
option reuse_port 1
option mptcp 1
option ipv6_first 1
config ss_rules 'ss_rules'
option disabled 0