This commit is contained in:
neil 2016-06-17 20:57:54 +08:00
parent 331c4bb669
commit fbad6a392d

View File

@ -907,7 +907,7 @@ _starttlsserver() {
fi
#start openssl
if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ]
if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ] ; then
(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) &