Browse Source

minor, add more debug info

master
neil 9 years ago
parent
commit
331c4bb669
  1. 5
      acme.sh

5
acme.sh

@ -907,7 +907,12 @@ _starttlsserver() {
fi fi
#start openssl #start openssl
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) & (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="$!" serverproc="$!"
sleep 2 sleep 2
_debug serverproc $serverproc _debug serverproc $serverproc

Loading…
Cancel
Save