From: Michael Date: Fri, 23 Dec 2022 06:48:53 +0000 (+0000) Subject: A server is only reachable when the network can be detected X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=998b05095b81c00f7c7d7be4bb0cf271954f0b70;p=friendica.git A server is only reachable when the network can be detected --- diff --git a/src/Model/GServer.php b/src/Model/GServer.php index 2fc37f35c3..b0a9dd5c9a 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -191,11 +191,11 @@ class GServer $condition = ['nurl' => Strings::normaliseLink($server)]; } - $gserver = DBA::selectFirst('gserver', ['url', 'next_contact', 'failed'], $condition); + $gserver = DBA::selectFirst('gserver', ['url', 'next_contact', 'failed', 'network'], $condition); if (empty($gserver)) { $reachable = true; } else { - $reachable = !$gserver['failed']; + $reachable = !$gserver['failed'] && in_array($gserver['network'], Protocol::FEDERATED); $server = $gserver['url']; }