diff --git a/src/Downloader.php b/src/Downloader.php index d3a6f6a..586c0ee 100644 --- a/src/Downloader.php +++ b/src/Downloader.php @@ -200,7 +200,7 @@ protected function fetchCertificates(string $hostName): array protected function buildFailureException(string $hostName, string $errorDescription): CouldNotDownloadCertificate { - if (str_contains($errorDescription, 'getaddrinfo failed')) { + if (str_contains($errorDescription, 'getaddrinfo') && str_contains($errorDescription, 'failed')) { return CouldNotDownloadCertificate::hostDoesNotExist($hostName); }