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:
parent
ae27394f78
commit
36f406746e
File diff suppressed because one or more lines are too long
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user