From 54bccc58974881830723f0bc17f5231f382113e6 Mon Sep 17 00:00:00 2001 From: libm Date: Sat, 29 Mar 2025 00:21:34 +0800 Subject: [PATCH] fix: add sudo. --- script/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/common.sh b/script/common.sh index a31774e..d7b5f33 100644 --- a/script/common.sh +++ b/script/common.sh @@ -194,7 +194,7 @@ function _error_quit() { _is_bind() { local port=$1 - { ss -tulnp || netstat -tulnp; } | grep ":${port}\b" + { sudo ss -tulnp || sudo netstat -tulnp; } | grep ":${port}\b" } _is_already_in_use() {