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

Case insensitive host comparison #565

Merged
merged 3 commits into from
Dec 17, 2024
Merged

Case insensitive host comparison #565

merged 3 commits into from
Dec 17, 2024

Conversation

ErikPelli
Copy link
Collaborator

@ErikPelli ErikPelli commented Dec 16, 2024

Fixes #561.
Since RFC4343 states that DNS host is case-insensitive by definition, we should do a case-insensitive comparison to perform actions on certain hosts, without let the user bypassing them by simply changing the case of a character.
The DNS will resolve both the uppercase and the lowercase host text to the same IP address.
Existing integration should never rely on the case of the host, so applying this change to the whole
Proxy server should never care about the case of the host, so directly modifying DstHostIs function to do a case insenstiive compare is appropriate in this case.

@ErikPelli ErikPelli requested a review from elazarl December 16, 2024 19:29
@ErikPelli ErikPelli merged commit f31a87f into master Dec 17, 2024
1 check passed
@ErikPelli ErikPelli deleted the case-insensitive branch December 17, 2024 10:50
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.

Case insensitive check for host restrictions
1 participant