1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2021-12-10 21:17:13 +01:00
parent 0ab2a14842
commit aa159e62e4

View file

@ -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