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 ctx.RemoteAddr() with multiple IP addresses value #2007

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

iqbalaydrus
Copy link
Contributor

@iqbalaydrus iqbalaydrus commented Nov 22, 2022

This fixes #2003

  • fixing incorrect IP comparison. unsafeCompare was comparing between converted IP address with literal unconverted IP string.
  • IPInRange should be both inclusive to accommodate /32 private subnet additions
  • added more tests

…en converted IP address with IP string.

- `IPInRange` should be both inclusive to accommodate /32 private subnet additions
- added more tests
@iqbalaydrus iqbalaydrus requested a review from kataras as a code owner November 22, 2022 10:37
@CLAassistant
Copy link

CLAassistant commented Nov 22, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Owner

@kataras kataras left a comment

Choose a reason for hiding this comment

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

LGTM Thanks!

@kataras kataras merged commit 03cf7a7 into kataras:master Nov 25, 2022
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.

[BUG] ctx.RemoteAddr() incorrect for multiple IP addresses
3 participants