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

Bind logic fails when net.ipv6.bindv6only is 0 #13

Open
andrew-aladjev opened this issue Apr 21, 2024 · 0 comments
Open

Bind logic fails when net.ipv6.bindv6only is 0 #13

andrew-aladjev opened this issue Apr 21, 2024 · 0 comments

Comments

@andrew-aladjev
Copy link

Hello, I am referring to this gist. I've also seen here issues about address is already in use. I want to talk about it.

First of all, I want to mention that net.ipv6.bindv6only = 0 is fairly legal for every Linux system because many developers may forget about ipv6, and this option should be enabled globally by default. This option enables binding to both 0.0.0.0 and :: when bind has been called with just 0.0.0.0. It allows programs to bind to IPv6 automatically.

So I am going to provide a pull request that will add the IPV6_V6ONLY option for socket when we are working with ipv6 protocol, because the current bind logic actually implies it.

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

1 participant