Browse Source
Merge pull request #6404 from laDanz/master
add support for AIX style netstat
pull/6409/head
neil
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
0 deletions
-
acme.sh
|
|
@ -1401,6 +1401,12 @@ _ss() { |
|
|
|
return 0 |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$(uname)" = "AIX" ]; then |
|
|
|
_debug "Using: AIX netstat" |
|
|
|
netstat -an | grep "^tcp" | grep "LISTEN" | grep "\.$_port " |
|
|
|
return 0 |
|
|
|
fi |
|
|
|
|
|
|
|
if _exists "netstat"; then |
|
|
|
_debug "Using: netstat" |
|
|
|
if netstat -help 2>&1 | grep "\-p proto" >/dev/null; then |
|
|
|