Skip to content

fix(windows): only consider online adapters#6810

Merged
thomaseizinger merged 2 commits intomainfrom
fix/check-if-adapter-is-up
Sep 25, 2024
Merged

fix(windows): only consider online adapters#6810
thomaseizinger merged 2 commits intomainfrom
fix/check-if-adapter-is-up

Conversation

@thomaseizinger
Copy link
Copy Markdown
Member

@thomaseizinger thomaseizinger commented Sep 25, 2024

When deciding which interface we are going to use for connecting to the portal API, we need to filter through all adapters on Windows and exclude our own TUN adapter to avoid routing loops. In addition, we also need to filter for only online adapters, otherwise we might pick one that is not actually routable.

Resolves: #6802.

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 8:59am

@thomaseizinger thomaseizinger changed the title fix(windows): only consider online interfaces fix(windows): only consider online adapters Sep 25, 2024
Copy link
Copy Markdown
Contributor

@conectado conectado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, I assumed that GetBestRoute2 would prioritize online adapters.

@thomaseizinger thomaseizinger added this pull request to the merge queue Sep 25, 2024
Merged via the queue into main with commit 4ae29c6 Sep 25, 2024
@thomaseizinger thomaseizinger deleted the fix/check-if-adapter-is-up branch September 25, 2024 21:33
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.

Issue with windows when changing connection

3 participants