mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Fix when host have more than 10 cores
This commit is contained in:
parent
0ab2a14842
commit
aa159e62e4
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ fi
|
|||
|
||||
if [ "$(uci -q get shadowsocks-libev.hi3)" != "" ]; then
|
||||
port=1100
|
||||
[ "$NBCPU" -gt "10" ] && NBCPU=10
|
||||
for c in $(seq 1 2 $NBCPU); do
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set shadowsocks-libev.hi$c.local_port=$port
|
||||
|
|
Loading…
Reference in a new issue