async_unix icon indicating copy to clipboard operation
async_unix copied to clipboard

Bind address wrongly set to ipv4 in case of ipv6

Open LasseBlaauwbroek opened this issue 3 years ago • 0 comments

It is not possible to connect to an ipv6 address using Where_to_connect when specifying no bind address. It errors out with Address family not supported by protocol. This seems to happen because create_bind_any always uses ipv4: https://github.com/janestreet/async_unix/blob/cc9687df10b2763943002640856329f5052f0b04/src/unix_syscalls.ml#L650 It should instead detect when ipv6 is used and change the address appropriately.

LasseBlaauwbroek avatar May 30 '21 05:05 LasseBlaauwbroek