Skip to content

Commit 8a4ba81

Browse files
authored
fix(handler): hide mullvad nodes from list (#309)
I suspect this is just a bug and not intended behaviour. This is a simple fix that hides all the Mullvad nodes from the `All machines` list. Tested on macOS v15.0.1 using VSCode v1.94.2 Fixes #278
1 parent 47f729b commit 8a4ba81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tsrelay/handler/get_peers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ func (h *handler) getPeers(ctx context.Context, body io.Reader) (*getPeersRespon
100100
continue
101101
}
102102

103+
if strings.Contains(p.DNSName, "mullvad.ts.net") {
104+
continue
105+
}
106+
103107
serverName := p.HostName
104108
if p.DNSName != "" {
105109
parts := strings.SplitN(p.DNSName, ".", 2)

0 commit comments

Comments
 (0)