Compare commits

..

2 Commits

Author SHA1 Message Date
Alexey 4e3d560a88 Merge pull request #919 from nikoano/fix/install-port-check-tcp-only
fix(install): probe only TCP when validating the target port
2026-09-07 00:03:33 +03:00
nikoano 9908e04e04 fix(install): probe only TCP when validating the target port 2026-09-05 17:03:34 +03:00
+2 -2
View File
@@ -447,9 +447,9 @@ check_port_availability() {
port_info=""
if command -v ss >/dev/null 2>&1; then
port_info=$($SUDO ss -tulnp 2>/dev/null | grep -E ":${SERVER_PORT}([[:space:]]|$)" || true)
port_info=$($SUDO ss -tlnp 2>/dev/null | grep -E ":${SERVER_PORT}([[:space:]]|$)" || true)
elif command -v netstat >/dev/null 2>&1; then
port_info=$($SUDO netstat -tulnp 2>/dev/null | grep -E ":${SERVER_PORT}([[:space:]]|$)" || true)
port_info=$($SUDO netstat -tlnp 2>/dev/null | grep -E ":${SERVER_PORT}([[:space:]]|$)" || true)
elif command -v lsof >/dev/null 2>&1; then
port_info=$($SUDO lsof -i :${SERVER_PORT} 2>/dev/null | grep LISTEN || true)
else