luci-proto-wireguard: fix loading peer descriptions
authorJo-Philipp Wich <jo@mein.io>
Wed, 23 Nov 2022 12:15:07 +0000 (13:15 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 23 Nov 2022 12:20:42 +0000 (13:20 +0100)
commit22c51acf81eccb2b690d8a012c379af06a7bccfb
tree563982cc94eec17eb41c48082186ff6e37357e95
parent8012ad2ad5a040e52c984f1cef07d4ef2e1c1325
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>
protocols/luci-proto-wireguard/htdocs/luci-static/resources/view/wireguard/status.js
protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard