Default to IPv6 bind address#566
Conversation
|
IIRC, this port binding behavior is only applicable to Linux. Does it do the same thing on Windows and Mac? |
|
It appears that on windows, this PR will make it so that it only binds to ipv6, and not both. |
|
My bad. Could we set those sock opts so that the behavior matches? |
|
You tell me, this is your PR. |
|
It really sucks that the behavior is not uniform. With a quick search i also did not find a way to set a sockopt on the TcpListener.. Perhaps we could default to IPv6 on Linux only for now? |
|
I think you could create a this might also help: https://docs.rs/net2/latest/net2/struct.TcpBuilder.html#method.only_v6 |
Default to IPv6 bind address
Solution