Преглед изворни кода

Merge pull request #44475 from nextcloud/fix/disabled-ipv6

tags/v29.0.0beta6
Benjamin Gaussorgues пре 2 месеци
родитељ
комит
f8d1487dcd
No account linked to committer's email address
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3
    1
      lib/private/Http/Client/DnsPinMiddleware.php

+ 3
- 1
lib/private/Http/Client/DnsPinMiddleware.php Прегледај датотеку

@@ -75,7 +75,9 @@ class DnsPinMiddleware {
$soaDnsEntry = $this->soaRecord($target);
$dnsNegativeTtl = $soaDnsEntry['minimum-ttl'] ?? null;

$dnsTypes = [DNS_A, DNS_AAAA, DNS_CNAME];
$dnsTypes = \defined('AF_INET6') || @inet_pton('::1')
? [DNS_A, DNS_AAAA, DNS_CNAME]
: [DNS_A, DNS_CNAME];
foreach ($dnsTypes as $dnsType) {
if ($this->negativeDnsCache->isNegativeCached($target, $dnsType)) {
continue;

Loading…
Откажи
Сачувај