dotnet/maui

Certain VPNs cause MAUI to respond with connectivity of NetworkAccess.Local

Open

#22,228 建立於 2024年5月6日

在 GitHub 查看
 (5 留言) (2 反應) (0 負責人)C# (23,245 star) (1,951 fork)batch import
area-essentialsgood first issueplatform/windowss/triageds/verifiedt/bug

描述

Description

When building a Windows MAUI app, the NetworkAccess will sometimes return Local for laptop connected via Wifi with Tailscale installed and the Tailscale interface shows up before the wifi Interface in the Control Panel Network Connections screen. I think that the logic may be picking the first connection when you may have more than one connection which is unexpected as Windows itself reports you have internet access but the app thinks you don't.

Steps to Reproduce

It might take a bit of trial and error to reproduce. I was able to disable Tailscale which then returned NetworkAccess.Internet to the app. Now the Tailscale interface is 4th in the list.

Link to public reproduction project repository

No response

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK

Did you find any workaround?

Disabling the VPN interface helps.

Relevant log output

?Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile()
{Windows.Networking.Connectivity.ConnectionProfile}
    CanDelete: false
    IsWlanConnectionProfile: false
    IsWwanConnectionProfile: false
    NetworkAdapter: {Windows.Networking.Connectivity.NetworkAdapter}
    NetworkSecuritySettings: {Windows.Networking.Connectivity.NetworkSecuritySettings}
    ProfileName: "Tailscale"
    ServiceProviderGuid: null
    WlanConnectionProfileDetails: null
    WwanConnectionProfileDetails: null

貢獻者指南

Certain VPNs cause MAUI to respond with connectivity of NetworkAccess.Local · dotnet/maui#22228 | Good First Issue