luci-proto-wireguard: gracefully deal with missing uci configs
authorJo-Philipp Wich <jo@mein.io>
Mon, 20 Jun 2022 22:07:04 +0000 (00:07 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Aug 2022 09:57:42 +0000 (11:57 +0200)
commitbf5d9d4a0f056d75210f87390371827bfb1a9d3b
tree4d04d1b729f38aee9db216ac25fccc8fb3bb904d
parentae2b63661207a8a50b5dd034223659d4fb2117b9
luci-proto-wireguard: gracefully deal with missing uci configs

The /etc/config/ddns in particular might not be present on the system,
don't fail if it is absent.

Fixes: #5838
Fixes: 9ba20645b0 ("luci-proto-wireguard: rewrite protocol handler")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 340183786e5441197141efaf7d8cf0e682047bfe)
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js