-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Enclose IPv6 addresses in "[]" #3477
Conversation
Do you want me to add a test with a config that contains an IPv6 backend to ensure the configuration is consistent ? |
Thanks for the contribution 👍 I rebased your PR on 1.6 branch. Could you add tests on |
@herver you don't need to merge with v1.6 (unless you have conflicts), we have a bot to do it at the end of the review process |
The test generates a catalog update containing a dummy service that has two backends: - one IPv4 - one IPv6 We ensure that both of the backend URLs are correctly formatted (as generated by getServer())
@ldez Oh ok :) well I added the test (which might be a bit overkill) but it makes sure that both v4 and v6 backend URLs are generated properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Add square brackets
[
and]
when dealing with IPv6 backends.Motivation
I was just bitten by #714 which I can confirm, and I'm running a version with this PR in production just fine.
Fixes #714