mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
enh: skip processing for empty response
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
489a57e9a3
commit
03f1f1ed2e
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue