From 726f02ba9d86a839c703813c36dea0abf2a261ab Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 12 Apr 2022 20:37:31 +0200 Subject: [PATCH] gluon-status-page: Expose method for VPN peers --- package/gluon-status-page/javascript/status-page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/gluon-status-page/javascript/status-page.js b/package/gluon-status-page/javascript/status-page.js index 016e20ee..39cbf3f9 100644 --- a/package/gluon-status-page/javascript/status-page.js +++ b/package/gluon-status-page/javascript/status-page.js @@ -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);