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

use provided ip for TcpSocket::connect instead of 0.0.0.0 #329

Merged
merged 3 commits into from
Apr 16, 2020

Conversation

trinity-1686a
Copy link
Contributor

the comment seems to say what was to do, but the code wasn't doing that, it was unconditionally returning remote_endpoint.addr.to_unspecified() as the first branch was unreachable, due to src/socket/tcp.rs:480

add non regression test to test_connect_validation
fix test_syn_sent_sanity to accept socket with set local ip
Copy link
Contributor

@whitequark whitequark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@whitequark whitequark merged commit c03bb50 into smoltcp-rs:master Apr 16, 2020
@trinity-1686a trinity-1686a deleted the fix/tcp-connect-local-ip branch May 27, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants