Skip to content

Use a fallback gateway if no ipv4 gateway is available in consommé networking - #41779

Merged
Blue (OneBlue) merged 1 commit into
masterfrom
user/oneblue/consomme-empty-route-fix
Oct 2, 2026
Merged

Blue (OneBlue) merged 1 commit into
masterfrom
user/oneblue/consomme-empty-route-fix

Conversation

@OneBlue

@OneBlue Blue (OneBlue) commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

This change solves a consommé networking issue that is triggered by a VPN setting an on-link (via 0.0.0.0) default route. This causes consommé to be configured with 0.0.0.0 as its DNS server, which breaks name resolution and can cause dockerd to time-out during boot.

This change solves the issue by adding logic to fallback to a generated gateway address in that scenario.

Unfortunately there's no easy way to add test coverage for this, since that would require setting up in VPN in the CI, which we don't have infrastructure for at this time

PR Checklist

  • Closes: Link to issue wslc run returns ERROR_TIMEOUT on WSL 3.0.1.0 #41740
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@OneBlue
Blue (OneBlue) requested a review from a team as a code owner October 2, 2026 20:08
Copilot AI balanced review requested due to automatic review settings October 2, 2026 20:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Adds a safeguard in Consommé networking to avoid using an unusable IPv4 default route (e.g., 0.0.0.0 from on-link VPN routes) by generating and applying a fallback IPv4 gateway to keep DNS/name resolution functional.

Changes:

  • Detects missing/unspecified IPv4 gateway and generates a fallback based on the preferred client IPv4 address.
  • Replaces any existing IPv4 default route with the generated gateway route and logs telemetry for both success/failure paths.
File Description
src/​windows/​common/​ConsommeNetworking.cpp Adds fallback gateway generation + route replacement when the best gateway is empty/unspecified to prevent broken DNS configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/windows/common/ConsommeNetworking.cpp
@OneBlue
Blue (OneBlue) merged commit 19b87cf into master Oct 2, 2026
12 checks passed
@OneBlue
Blue (OneBlue) deleted the user/oneblue/consomme-empty-route-fix branch October 2, 2026 22:45
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.

3 participants