Merge pull request #1063 from Neilpang/dev
fix https://github.com/Neilpang/acme.sh/issues/1062
This commit is contained in:
commit
bd065838fa
14
acme.sh
14
acme.sh
@ -2054,7 +2054,12 @@ _starttlsserver() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__S_OPENSSL="socat"
|
__S_OPENSSL="${ACME_OPENSSL_BIN:-openssl} s_server -www -cert $TLS_CERT -key $TLS_KEY "
|
||||||
|
if [ "$opaddr" ]; then
|
||||||
|
__S_OPENSSL="$__S_OPENSSL -accept $opaddr:$port"
|
||||||
|
else
|
||||||
|
__S_OPENSSL="$__S_OPENSSL -accept $port"
|
||||||
|
fi
|
||||||
|
|
||||||
_debug Le_Listen_V4 "$Le_Listen_V4"
|
_debug Le_Listen_V4 "$Le_Listen_V4"
|
||||||
_debug Le_Listen_V6 "$Le_Listen_V6"
|
_debug Le_Listen_V6 "$Le_Listen_V6"
|
||||||
@ -2065,9 +2070,12 @@ _starttlsserver() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
_debug "$__S_OPENSSL"
|
_debug "$__S_OPENSSL"
|
||||||
|
if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ]; then
|
||||||
|
$__S_OPENSSL -tlsextdebug &
|
||||||
|
else
|
||||||
|
$__S_OPENSSL >/dev/null 2>&1 &
|
||||||
|
fi
|
||||||
|
|
||||||
#todo listen address
|
|
||||||
$__S_OPENSSL openssl-listen:$port,cert=$TLS_CERT,key=$TLS_KEY,verify=0,reuseaddr,fork SYSTEM:"sleep 0.5; echo HTTP/1.1 200 OK'; echo ; echo $content; echo;" &
|
|
||||||
serverproc="$!"
|
serverproc="$!"
|
||||||
sleep 1
|
sleep 1
|
||||||
_debug serverproc "$serverproc"
|
_debug serverproc "$serverproc"
|
||||||
|
Loading…
Reference in New Issue
Block a user