-
-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Fix IP _resolve_hostname
for Unix
#106472
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
base: master
Are you sure you want to change the base?
Fix IP _resolve_hostname
for Unix
#106472
Conversation
_resolve_hostname
for unix
_resolve_hostname
for unix_resolve_hostname
for Unix
This comment was marked as resolved.
This comment was marked as resolved.
46f5320
to
f8bd7bc
Compare
Is there any reference for the requirement of
And domain resolution is also used in functions that open UDP sockets. It's not clear to me why this would fix the issue when |
I specified You are correct that I'm guessing the issue has to do with |
Well, this doesn't make much sense, if the value is properly zeroed by memset, setting it to In fact, I just tested resolving a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per the discussion above, the SOCK_STREAM
hint is incorrect, and it's not clear why explicitly setting it to 0
works for the OP since we already memset the whole struct to 0
.
I've also not been able to reproduce the original issue in my network.
Further investigation and testing is needed.
Fix the implementation of
_resolve_hostname
for the unix ip driver.Can resolve
.local
domains now using mDNS.Fixes #101453