Skip to content

Commit

Permalink
Handle peers without Tags
Browse files Browse the repository at this point in the history
If a peer doesn't have any tags the previous detection for Mullvad would fail and the extension would show an empty node list and crash instead.
  • Loading branch information
rjocoleman authored and joaophi committed Nov 21, 2023
1 parent 92debbd commit c7a7f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion [email protected]/tailscale.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const Tailscale = GObject.registerClass(
exit_node_option: peer.ExitNodeOption,
online: peer.Online,
ips: peer.TailscaleIPs,
mullvad: peer.Tags.includes("tag:mullvad-exit-node"),
mullvad: peer.Tags?.includes("tag:mullvad-exit-node") || false,
}))
.sort((a, b) =>
(b.exit_node - a.exit_node)
Expand Down

0 comments on commit c7a7f5e

Please sign in to comment.