gluon-status-page: fix mesh-vpn section for wg

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:
aiyion.prime 2022-05-05 11:49:46 +02:00
parent 743ba02fe9
commit b5242a530e
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);
var td = document.createElement('td');
if (peer[1])
if (peer[1] && peer[1].established != null)
td.textContent = _['connected'] + ' (' + formats.time(peer[1].established) + ')';
else
td.textContent = _['not connected'];