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

When querying IPv6 server bind socket to ::0, not to 0.0.0.0 #3

Open
advoretsky opened this issue Sep 16, 2024 · 0 comments · May be fixed by #4
Open

When querying IPv6 server bind socket to ::0, not to 0.0.0.0 #3

advoretsky opened this issue Sep 16, 2024 · 0 comments · May be fixed by #4

Comments

@advoretsky
Copy link

advoretsky commented Sep 16, 2024

I'm using the library on Mac OS, and getting Os { code: 22, kind: InvalidInput, message: "Invalid argument" }. It happens because

let socket = Async::<UdpSocket>::bind(([0, 0, 0, 0], 0))?;

doesn't work when send_to IPv6 address. At least on MacOS

Bind to Ipv4Addr::UNSPECIFIED or Ipv6Addr::UNSPECIFIED depending on the foreign_addr type

@advoretsky advoretsky linked a pull request Sep 19, 2024 that will close this issue
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 a pull request may close this issue.

1 participant