Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
enh: skip processing for empty response
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb authored and backportbot-nextcloud[bot] committed Sep 4, 2023
commit b6c6475e188b38c458cca47d6a7378df24f186fb
4 changes: 4 additions & 0 deletions lib/private/Http/Client/DnsPinMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ public function addDnsPinning() {

$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) {
Expand Down