From 331c4bb669aac468dafb68216fb3c16d6674f49a Mon Sep 17 00:00:00 2001 From: neil Date: Fri, 17 Jun 2016 20:54:22 +0800 Subject: [PATCH] minor, add more debug info --- acme.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 55cddcf..d0f1970 100755 --- a/acme.sh +++ b/acme.sh @@ -907,7 +907,12 @@ _starttlsserver() { fi #start openssl - (printf "HTTP/1.1 200 OK\r\n\r\n$content" | openssl s_server -cert "$TLS_CERT" -key "$TLS_KEY" -accept $port >/dev/null 2>&1) & + if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ] + (printf "HTTP/1.1 200 OK\r\n\r\n$content" | openssl s_server -cert "$TLS_CERT" -key "$TLS_KEY" -accept $port ) & + else + (printf "HTTP/1.1 200 OK\r\n\r\n$content" | openssl s_server -cert "$TLS_CERT" -key "$TLS_KEY" -accept $port >/dev/null 2>&1) & + fi + serverproc="$!" sleep 2 _debug serverproc $serverproc