mirror of
https://github.com/acmesh-official/acme.sh
synced 2025-08-22 01:49:43 +00:00
add support for AIX style netstat
This commit is contained in:
parent
42bbd1b44a
commit
242085d676
6
acme.sh
6
acme.sh
@ -1401,6 +1401,12 @@ _ss() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(uname)" = "AIX" ]; then
|
||||||
|
_debug "Using: AIX netstat"
|
||||||
|
netstat -an | grep "^tcp" | grep "LISTEN" | grep "\.$_port "
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
if _exists "netstat"; then
|
if _exists "netstat"; then
|
||||||
_debug "Using: netstat"
|
_debug "Using: netstat"
|
||||||
if netstat -help 2>&1 | grep "\-p proto" >/dev/null; then
|
if netstat -help 2>&1 | grep "\-p proto" >/dev/null; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user