Skip to content

Commit

Permalink
enh: skip processing for empty response
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb authored and backportbot-nextcloud[bot] committed Sep 4, 2023
1 parent 09fd427 commit b6c6475
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit b6c6475

Please sign in to comment.