Fix verification of ports (#818)

nc needs -p to publish verification code correctly, at least in Debian 12
This commit is contained in:
Pablo Ganuza Vidal 2024-08-19 00:39:29 +02:00 committed by GitHub
parent fc9fbedfac
commit f953eb623a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ connect_to_port () {
esac
done
else
echo -e "HTTP/1.1 200 OK\n\n $VERIFY" | nc -w 4 -l $PORT >/dev/null 2>&1 &
echo -e "HTTP/1.1 200 OK\n\n $VERIFY" | nc -w 4 -l -p $PORT >/dev/null 2>&1 &
if curl --proto =http -s $HOST:$PORT --connect-timeout 3 | grep $VERIFY >/dev/null 2>&1; then
return 0
else