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 ReservedAddress checking #14

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

nikthechampiongr
Copy link

@nikthechampiongr nikthechampiongr commented Nov 20, 2024

Mask was incorrectly calculated.

For example say we are checking for 10.0.0.0/8

we would want to check that the 8 most significant bits match

Before the changes we would end up with: addr & 1111_1111_1111_1111_1111_1111_0000_0000 which is incorrect
With the changes we end up with: addr & 1111_1111_0000_0000_0000_0000_0000_0000 which is correct

Mask was incorrectly calculated.
@PJB3005 PJB3005 merged commit 450e822 into space-wizards:wizards Nov 20, 2024
3 checks passed
@nikthechampiongr nikthechampiongr deleted the fix-local-check branch November 20, 2024 22:20
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.

2 participants