From 9fdca4f29d6ffdd5adbc8bd074c426acc14c0933 Mon Sep 17 00:00:00 2001 From: libm Date: Tue, 24 Jun 2025 11:43:00 +0800 Subject: [PATCH] fix: query listening sockets instead of all to fix #173 --- script/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/common.sh b/script/common.sh index 49ef8a3..ac10def 100644 --- a/script/common.sh +++ b/script/common.sh @@ -209,7 +209,7 @@ function _error_quit() { _is_bind() { local port=$1 - { sudo ss -anptu || sudo netstat -anptu; } | grep ":${port}\b" + { sudo ss -lnptu || sudo netstat -lnptu; } | grep ":${port}\b" } _is_already_in_use() {