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:49 +0000 (16:17 +0200)
commitfee5112940c2dd718742ec9f1dde8cdc01598459
treeaae39f57c35b826ccd35b8dfa15badef1c7dc8ed
parentb32b5fc7de42b7604147a289522c0d82915633fe
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]>
(cherry picked from commit 8bff54dc47057e36c0ceb263efe4c82580003924)
(cherry picked from commit f8dea77b35f082fc7e326f3207560164ebc2b7e3)
protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard