Skip to content

Commit 897b8b5

Browse files
committed
Do not return dead DCs
1 parent 77d9232 commit 897b8b5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎src/DataCenter.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,6 @@ public function getDataCenterConnection(int $dc, ?DataCenterConnection $legacy =
416416
}
417417
public function has(int $dc): bool
418418
{
419-
if (isset($this->list[$dc])) {
420-
return true;
421-
}
422419
$test = $this->getSettings()->getTestMode() ? 'test' : 'main';
423420
$ipv6 = $this->getSettings()->getIpv6() ? 'ipv6' : 'ipv4';
424421
return isset($this->API->dcList[$test][$ipv6][$dc]);

0 commit comments

Comments
 (0)