diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-09-04 15:18:37 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-09-04 18:51:27 +0000 |
commit | b6c6475e188b38c458cca47d6a7378df24f186fb (patch) | |
tree | 662452509a99c990f54086122d37147e015a4800 /lib/private/Http | |
parent | 09fd427df1e3cb6b1c41b7b1efabcd15b9da4118 (diff) | |
download | nextcloud-server-b6c6475e188b38c458cca47d6a7378df24f186fb.tar.gz nextcloud-server-b6c6475e188b38c458cca47d6a7378df24f186fb.zip |
enh: skip processing for empty response
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/Http')
-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) { |