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: ensure that host:port joining is done correct for IPv6 addresses #526

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Mar 5, 2025

IPv6 addresses need to be wrapped in square brackets when a port is being specified which net.JoinHostPort takes care of automatically.

This also enables the nosprintfhostport linter to catch this going forward.

Relates to #274

@G-Rath G-Rath mentioned this pull request Mar 5, 2025
46 tasks
@G-Rath G-Rath force-pushed the fix/ensure-host-ports-joined-correctly branch from 47d7922 to 3aaaca3 Compare March 6, 2025 01:34
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.

1 participant