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

Socket connections now try all possible IP addresses #196

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dreamlike-ocean
Copy link

Fixed an issue in ConnectionHelper where Socket connections sometimes failed. Socket connections now try all possible IP addresses, not just the first one.

When a host has multiple IP resolution results, especially when the results include both IPv4 and IPv6 addresses, this change can help connect to the correct IP.

For example, if the server is listening on ::1 and the client uses localhost to connect, by default, it will only attempt to connect to 127.0.0.1

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