Merge pull request #40234 from nextcloud/enh/noid/skip-processing-for-empty-response

This commit is contained in:
Daniel 2023-09-04 16:41:17 +02:00 committed by GitHub
commit b92f5cdd3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,10 @@ class DnsPinMiddleware {
$targetIps = $this->dnsResolve(idn_to_utf8($hostName), 0);
if (empty($targetIps)) {
throw new LocalServerException('No DNS record found for ' . $hostName);
}
$curlResolves = [];
foreach ($ports as $port) {