Skip to content

Commit f953eb6

Browse files
authored
Fix verification of ports (#818)
nc needs -p to publish verification code correctly, at least in Debian 12
1 parent fc9fbed commit f953eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discourse-setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ connect_to_port () {
6060
esac
6161
done
6262
else
63-
echo -e "HTTP/1.1 200 OK\n\n $VERIFY" | nc -w 4 -l $PORT >/dev/null 2>&1 &
63+
echo -e "HTTP/1.1 200 OK\n\n $VERIFY" | nc -w 4 -l -p $PORT >/dev/null 2>&1 &
6464
if curl --proto =http -s $HOST:$PORT --connect-timeout 3 | grep $VERIFY >/dev/null 2>&1; then
6565
return 0
6666
else

0 commit comments

Comments
 (0)