mirror of
https://github.com/friendica/friendica
synced 2024-11-18 09:03:42 +00:00
A server is only reachable when the network can be detected
This commit is contained in:
parent
b898dd1c00
commit
998b05095b
1 changed files with 2 additions and 2 deletions
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue