diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-11-23 13:15:07 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-11-23 13:20:42 +0100 |
commit | 22c51acf81eccb2b690d8a012c379af06a7bccfb (patch) | |
tree | 563982cc94eec17eb41c48082186ff6e37357e95 /protocols/luci-proto-wireguard/htdocs/luci-static/resources/view | |
parent | 8012ad2ad5a040e52c984f1cef07d4ef2e1c1325 (diff) |
luci-proto-wireguard: fix loading peer descriptions
Explicitly load `network` uci in wireguard rpcd backend as `ctx.foreach()`
does not implicitly load it.
Also remove leftover test setup information from the status page source.
Fixes: #6095
Fixes: 008fa18878 ("luci-proto-wireguard: rewrite rpcd handler in ucode")
Fixes: 6e6fce3eb4 ("luci-proto-wireguard: merge status page functionality")
Ref: https://github.com/jow-/ucode/pull/126
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'protocols/luci-proto-wireguard/htdocs/luci-static/resources/view')
-rw-r--r-- | protocols/luci-proto-wireguard/htdocs/luci-static/resources/view/wireguard/status.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/view/wireguard/status.js b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/view/wireguard/status.js index 3b7fa13b25..4344c36739 100644 --- a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/view/wireguard/status.js +++ b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/view/wireguard/status.js @@ -30,43 +30,6 @@ function timestampToStr(timestamp) { return (new Date(timestamp * 1000)).toUTCString() + ' (' + ago + ')'; } -/* -{ - "jow": { - "public_key": "o4iLoC1pl8+vEUshV7eUyKrryo7cr0WJkjS/Dlixxy8=", - "name": "jow", - "fwmark": "off", - "listen_port": "51821", - "peers": [ - { - "endpoint": "45.13.105.118:51821", - "public_key": "672KLy/R4miKXdvw2unuf9jQzVEmNnqen5kF+zVjMX0=", - "name": "m300", - "latest_handshake": "1668680574", - "persistent_keepalive": "off", - "allowed_ips": [ - "192.168.220.10/32" - ], - "transfer_tx": "308", - "transfer_rx": "220" - }, - { - "endpoint": "171.22.3.161:51821", - "public_key": "yblNj1s41F8m1MdXhxD2U+Aew6ZR6Miy8OcNK/fkAks=", - "name": "ac2", - "latest_handshake": "0", - "persistent_keepalive": "off", - "allowed_ips": [ - "192.168.220.11/32" - ], - "transfer_tx": "2960", - "transfer_rx": "0" - } - ] - } -} -*/ - function handleInterfaceDetails(iface) { ui.showModal(_('Instance Details'), [ ui.itemlist(E([]), [ |