use Friendica\DI;
use Friendica\Model\GServer;
use Friendica\Network\HTTPClient\Client\HttpClientAccept;
+use Friendica\Util\Network;
use Friendica\Util\Strings;
class UpdateServerPeers
$total = 0;
$added = 0;
foreach ($peers as $peer) {
+ if (Network::isUrlBlocked('https://' . $peer)) {
+ // Ignore blocked systems as soon as possible in the loop to avoid being slowed down by tar pits
+ continue;
+ }
+
++$total;
if (DBA::exists('gserver', ['nurl' => Strings::normaliseLink('http://' . $peer)])) {
// We already know this server