git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
e34c268
)
luci-proto-wireguard: follow-up fix for status overview
author
Paul Donald
<redacted>
Thu, 24 Oct 2024 18:34:43 +0000
(20:34 +0200)
committer
Paul Donald
<redacted>
Thu, 24 Oct 2024 18:34:43 +0000
(20:34 +0200)
follow-up to
7acea818735a9c5e8577d6b57f359996956f15e4
Closes #7347
Signed-off-by: Paul Donald <redacted>
protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard
patch
|
blob
|
history
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 c6ae13c94b8a00711710516a6b7399869e25f858..c177da4773a6a5bdf6753767eff9f303c616e1aa 100644
(file)
--- 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;
});
git clone https://git.99rst.org/PROJECT