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 ipv4/ipv6 fallback #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bengentil
Copy link

The current fallback to ipv6 won't work in most
cases (successful socket.socket(socket.AF_INET)
doesn't means ipv4 connectivity on the remote host).

What we are trying to do, is to connect to the right IP
(v4/v6) depending on DNS records (A / AAAA) and system
preference and it's already done system-wide via
getaddrinfo.

The current fallback to ipv6 won't work in most
cases (successful socket.socket(socket.AF_INET)
doesn't means ipv4 connectivity on the remote host).

What we are trying to do, is to connect to the right IP
(v4/v6) depending on DNS records (A / AAAA) and system
preference and it's already done system-wide via
getaddrinfo.
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.

1 participant