diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-09-05 19:14:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 19:14:52 +0200 |
commit | 90a2802f95ec25f14501aa80a4aa7561bf6de3f9 (patch) | |
tree | 4894fd45d76e21b7d00ff634fa5dda88dec7041e /lib | |
parent | 278f79f932f645ced72ae995b98b9ecb237b4c88 (diff) | |
parent | b6c6475e188b38c458cca47d6a7378df24f186fb (diff) | |
download | nextcloud-server-90a2802f95ec25f14501aa80a4aa7561bf6de3f9.tar.gz nextcloud-server-90a2802f95ec25f14501aa80a4aa7561bf6de3f9.zip |
Merge pull request #40258 from nextcloud/backport/40234/stable27
[stable27] enh: skip processing for empty response
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Http/Client/DnsPinMiddleware.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php index c6a58972fdd..5bde20d5cc1 100644 --- a/lib/private/Http/Client/DnsPinMiddleware.php +++ b/lib/private/Http/Client/DnsPinMiddleware.php @@ -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) { |