Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed issue with InetAddressBlock#contains when provided bits are 32 #1750

Merged

Conversation

illuque-iov
Copy link

@illuque-iov illuque-iov commented Apr 11, 2022

Fix issue on address comparison for 32 bits accuracy. It was causing a bug when (un)banning addresses with subnet /32.

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

@illuque-iov illuque-iov requested a review from Vovchyk April 26, 2022 10:47
@illuque-iov illuque-iov requested a review from Vovchyk April 27, 2022 17:59
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

88.8% 88.8% Coverage
0.0% 0.0% Duplication

@illuque-iov illuque-iov merged commit ade78a4 into peer_scoring_review_feature Apr 29, 2022
@aeidelman aeidelman added this to the Hop v4.1.0 milestone Jun 23, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants