[check] Use nc -u instead of nc --udp

nc in OpenMandriva supports both, nc in Ubuntu supports only -u
This commit is contained in:
Bernhard "bero" Rosenkränzer (Boggins) 2025-02-17 20:08:02 +01:00
parent a38d625025
commit 9c6f4c93c6

View File

@ -61,7 +61,7 @@ if [ -n "${PUBLICPORTS}" ]; then
for PORT in ${PUBLICPORTS}; do
TRIES=5
if echo $PORT |grep -q '/udp$'; then
NC_OPTS="--udp"
NC_OPTS="-u"
PORT="$(echo $PORT |sed -e 's,/udp$,,')"
else
NC_OPTS=""