fix: add sudo.

This commit is contained in:
libm committed 2025-03-29 00:21:34 +08:00
1 parent 5bb24b3864
commit 54bccc5897
1 file changed
+1 -1
+1 -1
View File
@@ -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() {