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 broadcast address lookup #47

Merged
merged 2 commits into from
Oct 26, 2023
Merged

fix: windows broadcast address lookup #47

merged 2 commits into from
Oct 26, 2023

Conversation

mrtnlrsn
Copy link
Contributor

When one network adapter has multiple ipv4 addresses, the previous implementation returned the same broadcast address for all IPs. This is fixed by correctly looking up the broadcast address in the prefix list.

Tested on 3 different Win 10 Home/Pro PCs.

Fixes #46

When one network adapter has multiple ipv4 addresses, the previous
implementation returned the same broadcast address for all IPs.
This is fixed by correctly looking up the broadcast address in the
prefix list.

Tested on 3 different Win 10 Home/Pro PCs.
@EstebanBorai EstebanBorai changed the title Fix Windows broadcast address lookup fix: Windows broadcast address lookup Oct 25, 2023
@EstebanBorai EstebanBorai changed the title fix: Windows broadcast address lookup fix: windows broadcast address lookup Oct 25, 2023
@EstebanBorai
Copy link
Owner

Hi @mrtnlrsn! Thanks so much for opening this PR!
Could you please run cargo clippy --fix so we can merge this PR?

All changes are from
  cargo clippy --fix
Copy link
Owner

@EstebanBorai EstebanBorai left a comment

Choose a reason for hiding this comment

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

Thanks again!

@EstebanBorai EstebanBorai merged commit c5da290 into EstebanBorai:main Oct 26, 2023
12 checks passed
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.

Incorrect broadcast address on Windows with multiple IPs per adapter
2 participants