Skip to content

Commit

Permalink
luci-proto-wireguard: follow-up fix for status overview
Browse files Browse the repository at this point in the history
follow-up to 7acea81

Closes #7347

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
  • Loading branch information
systemcrash committed Oct 24, 2024
1 parent e34c268 commit 760ac16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit 760ac16

Please sign in to comment.