luci-proto-wireguard: fix configuration import
authorJo-Philipp Wich <jo@mein.io>
Mon, 5 Dec 2022 09:34:51 +0000 (10:34 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 5 Dec 2022 09:34:51 +0000 (10:34 +0100)
commit785792a5911036910b6caf440b25262fe8d74a0a
tree53f20425e50e75a10fcd4eddbc238b8bf238a311
parent971cd82b41be43e8c040e788a0fec27923c40423
luci-proto-wireguard: fix configuration import

Avoid referencing not existing `peerdns` option during the configuration
file import process.

Fixes: #6136
Fixes: 2be01cbfcb ("luci-mod-network: restrict peerdns option to protocols that implemenent it")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js