Merge pull request #6404 from laDanz/master

add support for AIX style netstat
This commit is contained in:
neil authored and GitHub committed 2025-06-21 21:52:10 +02:00
commit c338f1a3fa
1 file changed
+6
+6
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.