luci-proto-wireguard: fix generated AllowedIPs
authorJulien Cassette <julien.cassette@gmail.com>
Sun, 6 Nov 2022 22:42:31 +0000 (23:42 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 23 Nov 2022 12:40:57 +0000 (13:40 +0100)
commit14403febc5109f30080a9fb25b14dd0c965873cc
tree985cf6cd7e66eaa2b2d59965f273055221a5a272
parent49869ffc7c98c7086950e6be630418d7fef938b5
luci-proto-wireguard: fix generated AllowedIPs

This corrects the option `AllowedIPs` in generated peer configurations,
and allows to customize it via a dropdown list.

Fixes: #5956
Signed-off-by: Julien Cassette <julien.cassette@gmail.com>
[correct fixes tag, slightly adjust option description]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 73aca68b9e35857ec155f33ca1b1fb5358d69e52)
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js