gluon-status-page: Expose method for VPN peers

This commit is contained in:
Martin Weinelt 2022-04-12 20:37:31 +02:00
parent bd285d9908
commit 726f02ba9d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

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