Merge pull request #40265 from nextcloud/backport/40234/stable22

[stable22] enh: skip processing for empty response
pull/40308/head
Arthur Schiwon 9 months ago committed by GitHub
commit 892952ff20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,6 +25,7 @@ declare(strict_types=1);
*/
namespace OC\Http\Client;
use OCP\Http\Client\LocalServerException;
use Psr\Http\Message\RequestInterface;
class DnsPinMiddleware {
@ -127,6 +128,10 @@ class DnsPinMiddleware {
$targetIps = $this->dnsResolve($hostName, 0);
if (empty($targetIps)) {
throw new LocalServerException('No DNS record found for ' . $hostName);
}
$curlResolves = [];
foreach ($ports as $port) {

Loading…
Cancel
Save