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

Fix Windows cargo test #35

Merged
merged 1 commit into from Apr 21, 2022
Merged

Fix Windows cargo test #35

merged 1 commit into from Apr 21, 2022

Conversation

BxOxSxS
Copy link
Contributor

@BxOxSxS BxOxSxS commented Apr 20, 2022

As the title says the changes are fixing cargo test on Windows.

I tested it on VM and with CI config from #10 and you can see here that it's working fine

@@ -84,7 +84,7 @@ impl Server {
return Ok(());
}
info!(?port, "new client");
let listener = match TcpListener::bind(("::", port)).await {
let listener = match TcpListener::bind(("0.0.0.0", port)).await {
Copy link
Owner

Choose a reason for hiding this comment

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

Does this work even when "::" or Ipv6Addr::UNSPECIFIED is passed in? I wanted to make sure that the server was listening on both Ipv4 and Ipv6 in dual-stack mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does not with both. That is why I changed it. At least from my testing ipv6 does no work even before that change but can be my network setup

Copy link
Owner

Choose a reason for hiding this comment

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

Got it, thanks for looking into this and figuring out the issue!

tests/e2e_test.rs Show resolved Hide resolved
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.

None yet

2 participants