Skip to content

Commit 00373f0

Browse files
committed
ipn/ipnlocal: exclude mullvad exit nodes from TailFS peers list
This is a temporary solution to at least omit Mullvad exit nodes from the list of TailFS peers. Once we can identify peers that are actually sharing via TailFS, we can remove this, but for alpha it'll be sufficient to just omit Mullvad. Updates tailscale/corp#17766 Signed-off-by: Percy Wegmann <percy@tailscale.com>
1 parent c58c59e commit 00373f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ipn/ipnlocal/tailfs.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,13 @@ func (b *LocalBackend) updateTailFSPeersLocked(nm *netmap.NetworkMap) {
238238

239239
tailfsRemotes := make([]*tailfs.Remote, 0, len(nm.Peers))
240240
for _, p := range nm.Peers {
241+
// Exclude mullvad exit nodes from list of TailFS peers
242+
// TODO(oxtoacart) - once we have a better mechanism for finding only accessible sharers
243+
// (see below) we can remove this logic.
244+
if strings.HasSuffix(p.Name(), ".mullvad.ts.net.") {
245+
continue
246+
}
247+
241248
peerID := p.ID()
242249
url := fmt.Sprintf("%s/%s", peerAPIBase(nm, p), tailFSPrefix[1:])
243250
tailfsRemotes = append(tailfsRemotes, &tailfs.Remote{

0 commit comments

Comments
 (0)