We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2013e0 commit beafd42Copy full SHA for beafd42
1 file changed
regtest.sh
@@ -23,7 +23,9 @@ _is_port_bound() {
23
local port=$1
24
case "$(uname)" in
25
"Linux")
26
- [ -n "$(ss -HOlnt "sport = :$port")" ] && return 0
+ [ -n "$(ss -HOant "sport = :$port")" ] && return 0
27
+ ss -Oant "sport = :$port"
28
+ return 1
29
;;
30
"Darwin")
31
lsof -i "tcp:${port}" -sTCP:LISTEN -t >/dev/null && return 0
0 commit comments