Set number of attempts to number of attempts * number of nameservers

This commit is contained in:
Daniil Gentili 2019-06-12 14:02:59 +02:00
parent f70333c3df
commit 2a16067bf2

View File

@ -245,7 +245,7 @@ final class Rfc8484StubResolver implements Resolver
/** @var Nameserver[] $nameservers */
$nameservers = $this->dohConfig->getNameservers();
$attempts = $this->config->getAttempts();
$attempts = $this->config->getAttempts() * count($nameservers);
$attempt = 0;
/** @var Socket $socket */