forked from evolix/evoadmin-web
fix(letsencrypt): check for false as to avoid TypeError
This commit is contained in:
parent
e76ea90d89
commit
9419242465
|
@ -157,6 +157,9 @@ class LetsEncrypt
|
||||||
{
|
{
|
||||||
$stream = stream_context_create(array("ssl" => array("capture_peer_cert" => true)));
|
$stream = stream_context_create(array("ssl" => array("capture_peer_cert" => true)));
|
||||||
$read = stream_socket_client("ssl://" . $domain . ":443", $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $stream);
|
$read = stream_socket_client("ssl://" . $domain . ":443", $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $stream);
|
||||||
|
if ($read === false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$cont = stream_context_get_params($read);
|
$cont = stream_context_get_params($read);
|
||||||
|
|
||||||
return $cont;
|
return $cont;
|
||||||
|
|
Loading…
Reference in a new issue