parent
a0704db43a
commit
ba08692403
|
@ -57,13 +57,13 @@ class UpdateServerPeers
|
||||||
$total = 0;
|
$total = 0;
|
||||||
$added = 0;
|
$added = 0;
|
||||||
foreach ($peers as $peer) {
|
foreach ($peers as $peer) {
|
||||||
if (Network::isUrlBlocked('http://' . $peer)) {
|
if (Network::isUrlBlocked('https://' . $peer)) {
|
||||||
// Ignore blocked systems as soon as possible in the loop to avoid being slowed down by tar pits
|
// Ignore blocked systems as soon as possible in the loop to avoid being slowed down by tar pits
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
++$total;
|
++$total;
|
||||||
if (DBA::exists('gserver', ['nurl' => Strings::normaliseLink('http://' . $peer)])) {
|
if (DBA::exists('gserver', ['nurl' => Strings::normaliseLink('https://' . $peer)])) {
|
||||||
// We already know this server
|
// We already know this server
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user