luci-proto-wireguard: fix broken DNS option in peer config generator
authorJo-Philipp Wich <jo@mein.io>
Fri, 16 Feb 2024 15:17:26 +0000 (16:17 +0100)
committerPaul Donald <newtwen@gmail.com>
Fri, 16 Feb 2024 15:28:58 +0000 (16:28 +0100)
commit270b7373c12e96742cfc9000456074c620ada6e2
tree46c27e4b348af96e300764de46b6f65565d2ff52
parent4fc9a8b0e7a6ef4b7a7e3ab83ac0857896c65180
luci-proto-wireguard: fix broken DNS option in peer config generator

The config generation code was referencing a not existing `dns_servers`
input field.

Fixes: #6921
Fixes: 5b26887c52 ("Adding a DNS option to the wireguard peer config ...")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e28f9a0491f5f50a70bbefb1720ff8241f456f83)
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js