gluon-status-page: fix mesh-vpn section for wg (#2502)

Since freifunk-gluon/packages#250 mesh-vpn-peers
can be empty arrays if they're not connected
and the node is in a WireGuard site.
This commit is contained in:
J. Burfeind 2022-05-21 20:27:14 +02:00 committed by GitHub
parent ae27394f78
commit 36f406746e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -206,7 +206,7 @@
tr.appendChild(th); tr.appendChild(th);
var td = document.createElement('td'); var td = document.createElement('td');
if (peer[1]) if (peer[1] && peer[1].established != null)
td.textContent = _['connected'] + ' (' + formats.time(peer[1].established) + ')'; td.textContent = _['connected'] + ' (' + formats.time(peer[1].established) + ')';
else else
td.textContent = _['not connected']; td.textContent = _['not connected'];