Don't run ncat within background loop in the background too

This commit is contained in:
linus 2024-06-04 00:17:53 +01:00 committed by domi
parent 10342035a4
commit a65b600952

View file

@ -190,7 +190,7 @@ else
done &
else
while true; do
ncat -i 600s -l -U "$socket" -c src/server.sh -k 2>> /dev/null &
ncat -i 600s -l -U "$socket" -c src/server.sh -k 2>> /dev/null
done &
fi
socat TCP-LISTEN:${cfg[port]},fork,bind=${cfg[ip]} UNIX-CLIENT:$socket &