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

Fallback to hostname resolution in TCP and UDP. #4561

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

guill-delacourt
Copy link
Contributor

This PR fixes the needs behind the issue #4514 by enabling fallback to hostname resolution if interface resolution fails.

When resolving addresses, there is already a fallback to getaddrinfo when interface resolution fails.
When allow_dns is set to false, the AI_NUMERICHOST flag is added to getaddrinfo to disable hostname resolution.
The fact we are binding is currently used to disable hostname resolution in TCP and UDP. To enable the fallback to hostname resolution, the allow_dns option should be set to true in all cases.

…is done after interface resolution, so it can always be enabled to have a fallback mecanism on hostname resolution.
@bluca bluca merged commit 5657b45 into zeromq:master Jun 12, 2023
59 of 67 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.

None yet

2 participants