mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Merge pull request #40258 from nextcloud/backport/40234/stable27
[stable27] enh: skip processing for empty response
This commit is contained in:
commit
90a2802f95
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