浏览代码

Merge pull request #6404 from laDanz/master

add support for AIX style netstat
neil 4 月之前
父节点
当前提交
c338f1a3fa
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      acme.sh

+ 6 - 0
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