Skip to content

count a vpn over mobile data for the local route - #2

Open
ljmerza wants to merge 1 commit into
prudnik-web:mainfrom
ljmerza:fix/vpn-over-mobile-data
Open

ljmerza wants to merge 1 commit into
prudnik-web:mainfrom
ljmerza:fix/vpn-over-mobile-data

Conversation

@ljmerza

@ljmerza ljmerza commented Oct 29, 2026

Copy link
Copy Markdown

Closes #1

Checks TRANSPORT_VPN before TRANSPORT_CELLULAR in netKind(). A VPN over mobile data reports both transports, so it came back as Mobile and the local route was skipped, even though the comment on the VPN branch means for the network under it to still count.

I haven't been able to try this on a real phone yet since I don't have a release build signed with your key, so a check on a device would help.

QA

With the phone on mobile data and a VPN into the computer's network, make sure the app connects over the local route and the connection log no longer says "on mobile data". Also make sure plain mobile data with no VPN still skips the local route, and Wi-Fi still works the same.

netKind() checked TRANSPORT_CELLULAR before TRANSPORT_VPN. A VPN network also
reports the transport under it, so a VPN over mobile data came back as Mobile
and the local route was never tried, though the VPN branch means for the
network underneath to still count.
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.

Local route is skipped on mobile data even with a VPN into the computer's network

1 participant