Use ss instead of netcat to check if a port is already used ... c.f. PR #827

This commit is contained in:
Alexandre Aubin 2019-11-08 23:04:32 +01:00
parent 9a95004efc
commit a89fd44ab6

View file

@ -40,7 +40,7 @@ ynh_port_available () {
# Manage arguments with getopts # Manage arguments with getopts
ynh_handle_getopts_args "$@" ynh_handle_getopts_args "$@"
if netcat -z 127.0.0.1 $port; if ss -nltu | grep -q -w :$port
then then
return 1 return 1
else else