Skip to content

Conversation

@cowlicks
Copy link
Member

This fixes a bug where we were getting the ip address of sender wrong. We were directly trying to cast libc::sockaddr_storage into a SocketAddr but these have different memory layouts so we got something weird.

I also noticed that UdxSocket::bind did not need to be async, so I fixed that. And added Cargo.lock to .gitignore.

With this my hyperswarm-dht code is now able to check that messages sent with async-udx have a valid id.

@cowlicks cowlicks changed the title Fix from address fix: get correct address of udp sender Nov 18, 2024
@cowlicks cowlicks mentioned this pull request Oct 30, 2025
@cowlicks cowlicks closed this Dec 10, 2025
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 this pull request may close these issues.

1 participant