luci-proto-wireguard: fixed bug with incorrect peer name detection
authorthis-username-has-been-taken <119663930+this-username-has-been-taken@users.noreply.github.com>
Wed, 23 Oct 2024 10:15:33 +0000 (13:15 +0300)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 23 Oct 2024 20:25:27 +0000 (22:25 +0200)
commit7acea818735a9c5e8577d6b57f359996956f15e4
tree1f99b5d9ebeb8b42bc39ffafd663915e01a748dc
parent13007611a31f14538a88b7360c6dca42ba703fbd
luci-proto-wireguard: fixed bug with incorrect peer name detection

Fixed bug with incorrect peer name detection on `Status -> WireGuard`
page when more than one peer with the same public key exist:
1. Peers are now tested not only by public key, but also by
enabled/disabled status, peer host (both IP and FQDN are supported)
and port.
2. Added required `resolveip` dependency.

Closes #7342

Signed-off-by: @this-username-has-been-taken
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
protocols/luci-proto-wireguard/Makefile
protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard