luci-proto-wireguard: Fix incorrect peer detection for IP v6
authorTom Haley <this_username_has_been_taken2@proton.me>
Mon, 2 Dec 2024 15:40:32 +0000 (18:40 +0300)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 5 Dec 2024 17:13:49 +0000 (18:13 +0100)
commit987bb6597c3f3378a0a9dc87f2c15426ed858eed
tree1867a28d4d55684332a0ad24eb306cabecc6d328
parent24d8916a58f9160edca2bd631952d1ddf39c63a8
luci-proto-wireguard: Fix incorrect peer detection for IP v6

This commit fixes incorrect peer detection when using IP v6 by deleting all the square the square brackets from the wgHost variable.

Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
(cherry picked from commit 5c97a89684cbc9eb6cf891f44cfd7f89237c52d4)
protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard