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

inet expects either inet or inet6 but mochiweb_socket_server passes both #189

Open
cacay opened this issue Jun 7, 2017 · 1 comment
Open

Comments

@cacay
Copy link

cacay commented Jun 7, 2017

mochiweb_socket_server passes both inet and inet6, which makes gen_tcp and/or ssl default to the first (IPv4 in this case). From what I can tell, there is no portable way to support both IPv4 and IPv6 on the same port (see the documentation for the ipv6_v6only option for inet). I think the closes best-effort behavior would be passing in inet6, {ipv6_v6only, true}. A better option is to force the user to pick one or the other.

@etrepum
Copy link
Member

etrepum commented Jun 8, 2017

The best way to get this promptly fixed would be to contribute a PR with tests, which would demonstrate that it works as expected and does not regress in the future.

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

No branches or pull requests

2 participants