Fallback read the peer list by exact key, so a partner whose tailnet name differs by one character rendered as UNREACHABLE
This commit is contained in:
@@ -167,8 +167,10 @@ function vv_fb_all(): array {
|
||||
$nodes = [];
|
||||
foreach ($hosts as $slot => $hostname) {
|
||||
$isMe = ($slot === $currentHost || $currentHost === 'unknown');
|
||||
$tsLabel = strtolower($hostname);
|
||||
$ts = $tsPeers[$tsLabel] ?? ['online' => null, 'active' => false, 'ip' => null];
|
||||
// Exact-key only, until now — see vv_pt_peer_lookup(). This mesh's conf name and tailnet
|
||||
// name differ by one character, so HOST2 missed every lookup and the page rendered a
|
||||
// partner that was up the whole time as state=UNREACHABLE.
|
||||
$ts = vv_pt_peer_lookup($tsPeers, $hostname);
|
||||
$ip = $ts['ip'] ?? null;
|
||||
|
||||
// State
|
||||
|
||||
Reference in New Issue
Block a user