Skip to content

feat: try IPv6 when dialing IPv4 loopback #49

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

Merged
merged 2 commits into from
May 1, 2024
Merged

Conversation

deansheather
Copy link
Member

@deansheather deansheather commented Apr 30, 2024

If we fail to dial 127.0.0.1:x over TCP when forwarding traffic, try ::1 as well.

This doesn't apply to UDP connections, which don't have "connections" and we therefore can't detect failures (unless we retried every single packet, which I think is a bad idea). The majority of users are only using TCP anyways so I think it's OK.

Relates to coder/coder#12906

@deansheather deansheather marked this pull request as ready for review April 30, 2024 14:53
@deansheather deansheather requested a review from coadler April 30, 2024 14:53
@deansheather deansheather merged commit d8a4721 into main May 1, 2024
8 of 35 checks passed
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.

2 participants