Skip to content

Conversation

vadmeste
Copy link
Member

@vadmeste vadmeste commented May 30, 2023

Currently, when the specified endpoint is an IP v4 address and the port is 80/443,
minio-go sends a Host header with a bracket, which is wrong.

An ipV4 can be converted to ip6 in golang library, therefore using ip.To4() shoud
return nil if the passed IP is v6.

Currently, when the specified endpoint is an IP v4 address and
the port is 80/443, minio-go sends a Host header with a bracket,
which is wrong.

An ipV4 can be converted to ip6 in golang library, therefore using
ip.To4() shoud return nil if the passed IP is v6.
Copy link
Contributor

@klauspost klauspost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@harshavardhana harshavardhana merged commit 68418bf into minio:master May 30, 2023
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.

3 participants