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

Listen on IPv6 by default #379

Closed
wants to merge 1 commit into from
Closed

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Oct 8, 2017

This enables running in an IPv6-only setup.

@mmoll
Copy link
Contributor

mmoll commented Oct 12, 2017

iirc the main problem was that this default would break Windows and/or FreeBSD, I'll check at least with FreeBSD later.

@ekohl
Copy link
Member Author

ekohl commented Oct 14, 2017

Would it be an idea to only do this on Linux then?

@mmoll
Copy link
Contributor

mmoll commented Oct 14, 2017

What's working under FreeBSD is ['0.0.0.0', '::'], could you check if that also would work on Linux?

@ekohl
Copy link
Member Author

ekohl commented Oct 16, 2017

That doesn't work on my EL7 system. After a bit of searching I did find ruby/ruby@b1f493d which I think means that only Ruby 2.1 and higher this works. You can use sysctl net.ipv6.bindv6only=1 and then your suggestion should work.

Later I'll try to reproduce this on a newer Ruby but I'm leaning to considering this invalid and closing.

@ekohl
Copy link
Member Author

ekohl commented Oct 19, 2017

Confirmed that Ruby 2.3 does listen on both IPv4 and IPv6 when binding to *.

@ekohl ekohl closed this Oct 19, 2017
@ekohl ekohl deleted the listen-ipv6 branch October 19, 2017 12:35
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