Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update go-netroute so that we get the correct priority of routes #1902

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

MarcoPolo
Copy link
Collaborator

Updates the go-netroute dependency to get this fix: https://github.com/libp2p/go-netroute/pull/26/files.

Fixes #1849

The sorting of priorities was wrong/incomplete, so we would return the wrong interface to dial out. When a VPN is setup like wireguard, the VPN interface should have higher priority (well technically a smaller number). If we don't check this priority we could try to use the non-VPN interface to dial out and that would fail since the host probably has rules to prevent any packets not sent out over the VPN (to avoid leaks).

By bringing in this fix, we check the priority properly and use the correct (VPN) interface to dial out.

@MarcoPolo MarcoPolo merged commit 86d5a56 into master Nov 18, 2022
@MarcoPolo MarcoPolo deleted the marco/fix-ordering-of-prerredRoutes branch November 18, 2022 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Nodes Are Unable To Open Outbound Connections Via VPNs
2 participants