-
Notifications
You must be signed in to change notification settings - Fork 106
fix: IPv6 addresses double-wrapped in brackets #570
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
Conversation
|
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes Case Larsen seems not to be a GitHub user. Have you signed the CLA already but the status is still pending? Recheck it. |
|
Marking as draft for the time being.
|
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.
Pull Request Overview
This PR fixes a bug where IPv6 addresses were being double-wrapped in brackets, causing SSH connection failures. The code was manually wrapping IPv6 addresses in brackets, but Go's net.JoinHostPort function already handles this, resulting in malformed addresses like [[IPv6]]:port.
- Removed manual IPv6 bracket wrapping logic
- Added documentation explaining why the wrapping was removed
- Fixed SSH communicator failures with IPv6 addresses
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
cefa7e3 to
bc8b0fb
Compare
I've amended and addressed the above. |
tenthirtyam
left a comment
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
thanks for taking care of the code/commit comment issues. |
You're welcome! @kp2099 will review this one along with a few others this week. Depending on the payload we may consider a minor patch for this issue and one other ahead of v2.1.0. |
Signed-off-by: Case Larsen <[email protected]>
bc8b0fb to
95a4d9c
Compare
Description
removed ipv6 address wrapping code because golang net.JoinHostPort already wraps ipv6 addresses in '[' and ']'. double wrapping causes ssh communicator to fail.
Resolved Issues
If your PR resolves any open issue(s), please indicate them like this so they will be closed when your PR is merged:
This reverts the fix #406 for this issue #333 (comment)
Logs before this PR
Logs after this PR