From 830012564d622d94fd89accf73d7bad0e3abd1e5 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 8 Aug 2016 23:43:12 +0800 Subject: [PATCH] Support Solaris --- acme.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acme.sh b/acme.sh index 4008deba..cb1940df 100755 --- a/acme.sh +++ b/acme.sh @@ -406,6 +406,9 @@ _ss() { else if netstat -help 2>&1 | grep "\-p protocol" >/dev/null ; then netstat -an -p tcp | grep LISTEN | grep ":$_port " + elif netstat -help 2>&1 | grep -- '-P protocol' >/dev/null ; then + #for solaris + netstat -an -P tcp | grep ".$_port " else netstat -ntpl | grep ":$_port " fi