Skip to content

Commit ee3bae1

Browse files
committed
enh: skip processing for empty response
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 489a57e commit ee3bae1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/private/Http/Client/DnsPinMiddleware.php

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

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

131+
if (empty($targetIps)) {
132+
throw new LocalServerException('No dns records found for ' . $hostName);
133+
}
134+
131135
$curlResolves = [];
132136

133137
foreach ($ports as $port) {

0 commit comments

Comments
 (0)