Skip to content

android: modify mullvad exit node detection logic#656

Merged
barnstar merged 1 commit into
mainfrom
jonathan/mullvad-check
May 28, 2025
Merged

android: modify mullvad exit node detection logic#656
barnstar merged 1 commit into
mainfrom
jonathan/mullvad-check

Conversation

@barnstar

Copy link
Copy Markdown
Member

updates tailscale/corp#29045

We ran into an issue where the current detection logic was not sufficient to filter out mullvad nodes. This modifies the logic so we scan both the Name and ComputedName for the mullvad domain and also treat all nodes with location info as mullvad nodes. While all of these conditions should be true for any mullvad node, in practice it's possible that they aren't so we or them together for some redundancy and define a mullvad exit node to be any node where any of these conditions is true.

@barnstar barnstar requested a review from kari-ts May 26, 2025 18:37
@ghost

ghost commented May 26, 2025

Copy link
Copy Markdown

Pull Request Revisions

RevisionDescription
r3
Mullvad node detection method updatedChanged Mullvad node detection to use endsWith() instead of contains() for domain matching
r2No changes since last revision
r1
Updated Mullvad node detection logicEnhanced isMullvadNode check to use multiple criteria including domain and location information

✅ AI review completed for r3
Help React with emojis to give feedback on AI-generated reviews:
  • 👍 means the feedback was helpful and actionable
  • 👎 means the feedback was incorrect or unhelpful
💬 Replying to feedback with a comment helps us improve the system. Your input also contributes to shaping future interactions with the AI reviewer.

We'd love to hear from you—reach out anytime at team@review.ai.

Comment thread android/src/main/java/com/tailscale/ipn/ui/model/TailCfg.kt
Comment thread android/src/main/java/com/tailscale/ipn/ui/model/TailCfg.kt
@barnstar barnstar force-pushed the jonathan/mullvad-check branch from 3bbd6d8 to f479d50 Compare May 26, 2025 19:07
updates tailscale/corp#29045

We ran into an issue where the current detection logic was not
sufficient to filter out mullvad nodes.  This modifies the logic so we
scan both the Name and ComputedName for the mullvad domain and
also treat all nodes with location info as mullvad nodes.  While all
of these conditions *should* be true for any mullvad node, in practice
it's possible that they aren't so we or them together for some redundancy
and define a mullvad exit node to be any node where any of these
conditions is true.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
@barnstar barnstar force-pushed the jonathan/mullvad-check branch from f479d50 to 2b61811 Compare May 26, 2025 19:10
@barnstar barnstar merged commit 88a5d3c into main May 28, 2025
5 checks passed
@barnstar barnstar deleted the jonathan/mullvad-check branch May 28, 2025 14:12
barnstar added a commit that referenced this pull request May 28, 2025
updates tailscale/corp#29045

We ran into an issue where the current detection logic was not
sufficient to filter out mullvad nodes.  This modifies the logic so we
scan both the Name and ComputedName for the mullvad domain and
also treat all nodes with location info as mullvad nodes.  While all
of these conditions *should* be true for any mullvad node, in practice
it's possible that they aren't so we or them together for some redundancy
and define a mullvad exit node to be any node where any of these
conditions is true.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
(cherry picked from commit 88a5d3c)
nadeemakhter0602 pushed a commit to nadeemakhter0602/TailMon that referenced this pull request Mar 22, 2026
updates tailscale/corp#29045

We ran into an issue where the current detection logic was not
sufficient to filter out mullvad nodes.  This modifies the logic so we
scan both the Name and ComputedName for the mullvad domain and
also treat all nodes with location info as mullvad nodes.  While all
of these conditions *should* be true for any mullvad node, in practice
it's possible that they aren't so we or them together for some redundancy
and define a mullvad exit node to be any node where any of these
conditions is true.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants