diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-10-24 20:34:43 +0200 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-10-24 20:34:43 +0200 |
commit | 760ac165fa76952161e82bd825d9c757a10e0436 (patch) | |
tree | 9f9b67fc8853f429e6293c808274888a4f80585d | |
parent | e34c268411b2fea71e419be5dc0f8f6976d4e714 (diff) |
luci-proto-wireguard: follow-up fix for status overview
follow-up to 7acea818735a9c5e8577d6b57f359996956f15e4
Closes #7347
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
-rw-r--r-- | protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard b/protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard index c6ae13c94b..c177da4773 100644 --- a/protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard +++ b/protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard @@ -89,7 +89,7 @@ const methods = { let peer_name; uci.foreach('network', `wireguard_${last_device}`, (s) => { - if (!s.disabled && s.public_key == record[1] && checkPeerHost(s.endpoint_host, s.endpoint_port, record[3])) + if (!s.disabled && s.public_key == record[1] && (!s.endpoint_host || checkPeerHost(s.endpoint_host, s.endpoint_port, record[3]))) peer_name = s.description; }); |