mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #40234 from nextcloud/enh/noid/skip-processing-for-empty-response
This commit is contained in:
commit
b92f5cdd3d
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