Skip to content

Commit 4fe54c5

Browse files
kesselbbackportbot-nextcloud[bot]
authored andcommitted
enh: skip processing for empty response
Signed-off-by: Daniel Kesselberg <[email protected]>
1 parent 79c2353 commit 4fe54c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/private/Http/Client/DnsPinMiddleware.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ public function addDnsPinning() {
127127

128128
$targetIps = $this->dnsResolve(idn_to_utf8($hostName), 0);
129129

130+
if (empty($targetIps)) {
131+
throw new LocalServerException('No DNS record found for ' . $hostName);
132+
}
133+
130134
$curlResolves = [];
131135

132136
foreach ($ports as $port) {

0 commit comments

Comments
 (0)