-
Notifications
You must be signed in to change notification settings - Fork 22
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 std::net::SocketAddr to libc::sockaddr conversion. #54
Conversation
@dlon could you please review this PR, thanks a lot in advance! |
ec2c0af
to
13abe36
Compare
@faern could you please take a look at this PR and merge if you are ok with changes? Thanks a lot in advance, Yury. |
Hi. Sorry for the slow reply. It's still vacation period in Sweden and many developers are off. We'll get back to you once we have the manpower to handle third party PRs :) Thanks for contributing a fix! |
Ok, no problem at all, have a great vacation! |
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.
I had no idea we had a bug with this API 😮 I have to try it out locally and see. Apparently we have not really used this particular API much?
13abe36
to
5f28321
Compare
Fix std::net::SocketAddr to libc::sockaddr conversion.
This fix has now been published, as part of |
This make
SCNetworkReachabilityCreateWithAddressPair
work with any valid pair of addresses, not only0.0.0.0
.The fixed implementation is mostly taken from
socket2
This change is