luci-proto-wireguard: fixed incorrect peer name detection
authorthis-username-has-been-taken <[email protected]>
Sun, 13 Apr 2025 13:38:46 +0000 (16:38 +0300)
committerPaul Donald <[email protected]>
Sun, 13 Apr 2025 14:17:02 +0000 (16:17 +0200)
commit8bff54dc47057e36c0ceb263efe4c82580003924
tree544d4ac65c32e00c545717b9f3f52c9d6b8fe5b0
parent04f2d129d7c5cdbc32b3c7884b30c42f1285e696
luci-proto-wireguard: fixed incorrect peer name detection

Added the legacy peer name detection algorithm. If the new algorithm
fails to find a peer's name (e.g. when the IP address has been changed)
then the legacy value will be used.

Signed-off-by: Tom Haley <[email protected]>
protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard