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 IPv6 adresses in upstream members #1300

Merged
merged 3 commits into from
Feb 1, 2019

Conversation

silkeh
Copy link
Contributor

@silkeh silkeh commented Jan 18, 2019

Pull Request (PR) description

IPv6 addresses, when used in conjunction with a port, need to be
enclosed by square brackets ([]).

This PR checks if the server is an IPv6 address, and encloses it in brackets when it is.

Includes a bump of the minimum version of stdlib, as Stdlib::IP::Address::V6 was introduced in version v4.25.0.

This Pull Request (PR) fixes the following issues

Fixes #1299

@silkeh
Copy link
Contributor Author

silkeh commented Jan 21, 2019

Not sure why the tests are failing, but it seems to be unrelated to changes introduced by this PR.

@bastelfreak bastelfreak added the bug Something isn't working label Feb 1, 2019
IPv6 addresses, when used in conjunction with a port, need to be
enclosed by square brackets (`[]`).
Stdlib 4.25.0 introduces `Stdlib::IP::Address::V6` used for checking
if an IP address is an IPv6 address.
@bastelfreak
Copy link
Member

Hi @silkeh, I rebased this branch. The tests should turn green afterwards. If they do, I will merge the PR. Thanks for the work!

@bastelfreak bastelfreak merged commit 9e46927 into voxpupuli:master Feb 1, 2019
Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
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.

IPv6 upstream members produce invalid configuration
4 participants