-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 to handle OS disabled IPv6, issue #714. #717
Fix to handle OS disabled IPv6, issue #714. #717
Conversation
- Changes made only in the os_calls.c file. - Exported functions changed: g_tcp_bind g_tcp_bind_address g_tcp_connect - Support three network configurations: 1) Normal network, with IPv6 2) Partly disabled IPv6 via sysctl.conf 3) Total disabled IPv6 via grub
I'm testing this. |
Works fine for me. |
I'll merge this in 24 hours if no objections. |
Okay, great. I have now tested on Xubuntu 17.04 Beta2 and it works OK. PS. One thing I notice was that if IPv6 isn't available and the g_tcp_socket function will falling back to IPv4. It will be an ERROR message in log files "g_tcp_socket: Address family not supported by protocol". This isn't so nice! After this it will be an INFO message "IPv6 not supported, falling back to IPv4". I haven't changed this function, so it is as it was before. |
Sorry, I'm a bit annoyed that I missed that old error message. This error message will always come at start if the system have IPv6 disabled. I think it should be removed. I have looked at it and it is easy fixed by moving the log_message line at row 422 little bit down to the default case. Like this:
@metalefty Is it too late to commit a fix to this pull request? You wrote that you will merge this and I don't want to mess things up now. |
@MichaelSweden No problem. I'm waiting for your fix. |
@MichaelSweden : just make another commit in your branch, and gitlab will add it into this pull request. |
LGTM. |
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.
Works fine for me, again.
Please see #714