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

fix: should allow fallbacking ip version if dialing domain #164

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

mzz2017
Copy link
Contributor

@mzz2017 mzz2017 commented Jun 29, 2023

Background

If the local host has IPv6 addresses but the remote proxy does not, dae drops all the IPv6 traffic onto the remote proxy. This behavior impacts lots of software that does not support happy eyeballs.

In fact, if we send the domain to the remote proxy, it will re-select ip version and this problem will be resolved.

In the past, dae did not support domain sniffing. The developer hope to solve this problem by happy eyeballs, but now it seems that this change needs to be optimized, and only when dialing ip instead, maintain the previous behavior.

Checklist

Full changelogs

  • If dial_mode is not ip, dae removes notifying the kernel program to block the unreachable triples (group, ip version, l4 protocol).
  • If the dial target is not an ip, dae trys to fallback to another ip version to dial.

Issue reference

Fix #152

@mzz2017 mzz2017 changed the title fix: should allow fallbacking ipversion if dialing domain fix: should allow fallbacking ip version if dialing domain Jun 29, 2023
@mzz2017 mzz2017 requested a review from MarksonHon June 29, 2023 14:15
@mzz2017
Copy link
Contributor Author

mzz2017 commented Jun 29, 2023

图片

@mzz2017 mzz2017 added the tested label Jun 29, 2023
Copy link
Contributor

@dae-prow dae-prow bot left a comment

Choose a reason for hiding this comment

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

🧪 Since the PR has been fully tested, please consider merging it.

@mzz2017 mzz2017 added the fix label Jun 29, 2023
@MarksonHon
Copy link
Contributor

图片
PowerShell also works well now

@MarksonHon
Copy link
Contributor

图片
Poor wget works well now

Copy link
Contributor

@MarksonHon MarksonHon left a comment

Choose a reason for hiding this comment

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

tested, it works.

@mzz2017
Copy link
Contributor Author

mzz2017 commented Jun 29, 2023

@MarksonHon LGTM. Thanks bro.

@mzz2017 mzz2017 merged commit 0bac1c6 into main Jun 29, 2023
@mzz2017 mzz2017 deleted the fix_ipv6_happyeyeballs branch June 29, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Happyeyeballs is not fully supported by some softwares
2 participants