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

httpcaddyfile: Support multiple values for default_bind #4774

Merged
merged 2 commits into from May 9, 2022

Conversation

francislavoie
Copy link
Member

Fix #4773

Just an oversight

@francislavoie francislavoie added the bug 🐞 Something isn't working label May 8, 2022
@francislavoie francislavoie added this to the v2.5.2 milestone May 8, 2022
@francislavoie francislavoie requested a review from mholt May 8, 2022 19:33
@francislavoie
Copy link
Member Author

Gah. Tests failed because the listener array's order wasn't kept consistent... Sigh, there must be a map somewhere in the code making them not keep order. I'll need to hunt that down and add a sort.

@francislavoie
Copy link
Member Author

francislavoie commented May 9, 2022

Wow that was super annoying to fix.

I used $ go test -count=100 -short caddytest/integration/ to try to track down where the sorting would fall apart, and I found a couple places where it was problematic. Added some extra sorting, it should be reliable now.

@francislavoie francislavoie merged commit b687d7b into master May 9, 2022
@francislavoie francislavoie deleted the default-bind-multi branch May 9, 2022 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

default_bind global option cannot accept multiple IP addresses
2 participants