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:
Gmer4Lfe
2026-08-22 00:34:33 -04:00
parent 46239012b4
commit 5924aae1c0
2 changed files with 28 additions and 14 deletions
+4 -2
View File
@@ -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