[check] Use nc -u instead of nc --udp
nc in OpenMandriva supports both, nc in Ubuntu supports only -u
This commit is contained in:
parent
a38d625025
commit
9c6f4c93c6
@ -61,7 +61,7 @@ if [ -n "${PUBLICPORTS}" ]; then
|
|||||||
for PORT in ${PUBLICPORTS}; do
|
for PORT in ${PUBLICPORTS}; do
|
||||||
TRIES=5
|
TRIES=5
|
||||||
if echo $PORT |grep -q '/udp$'; then
|
if echo $PORT |grep -q '/udp$'; then
|
||||||
NC_OPTS="--udp"
|
NC_OPTS="-u"
|
||||||
PORT="$(echo $PORT |sed -e 's,/udp$,,')"
|
PORT="$(echo $PORT |sed -e 's,/udp$,,')"
|
||||||
else
|
else
|
||||||
NC_OPTS=""
|
NC_OPTS=""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user