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(host filtering): allow hosts with multiple ports #1227

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

niklasad1
Copy link
Member

The refactoring moved to another library where an Authority with the "same host name" but a different port was overwritten and this commit fixes that several ports with the same host name can be configured and work properly.

The refactoring moved to another library where an `Authority` with
the "same host name" but a different port was overwritten and
this commit fixes that several ports with the same host name can
be configured and work properly.
@niklasad1 niklasad1 requested a review from a team as a code owner October 31, 2023 15:58
@niklasad1 niklasad1 changed the title fix(host filtering): allow same host with ports fix(host filtering): allow host with several ports Oct 31, 2023
@niklasad1 niklasad1 changed the title fix(host filtering): allow host with several ports fix(host filtering): allow hosts with multiple ports Oct 31, 2023

match (p, &other.port) {
ports.iter().any(|p| match (p, &other.port) {
Copy link
Member Author

@niklasad1 niklasad1 Oct 31, 2023

Choose a reason for hiding this comment

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

I expect this list to be small and linear search should ok here, we could change this to a HashSet or BTreeSet though

Copy link
Collaborator

Choose a reason for hiding this comment

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

I suspect you're right!

@niklasad1 niklasad1 mentioned this pull request Dec 4, 2023
8 tasks
@niklasad1 niklasad1 merged commit 0a39c1a into master Dec 5, 2023
9 checks passed
@niklasad1 niklasad1 deleted the na-fix-host-filtering-multiple-ports branch December 5, 2023 13:57
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.

3 participants