Merge pull request #40258 from nextcloud/backport/40234/stable27

[stable27] enh: skip processing for empty response
This commit is contained in:
Arthur Schiwon 2023-09-05 19:14:52 +02:00 committed by GitHub
commit 90a2802f95
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) {