Skip to content

Conversation

@SSushmitha8
Copy link
Contributor

@SSushmitha8 SSushmitha8 commented Nov 3, 2025

Fixes https://github.com/miniohq/aistor-console/issues/5067

When minio runs on port 443, for api calls that uses minio-go in console throws error (api calls that uses madmin-go works fine)

ip.To16() always returns non-nil for valid IPs → wraps ALL IPs in brackets

{
    "errorMessage": "parse \"https://[127.0.0.1]/abc/?location=\": invalid IPv6 host",
    "detailedError": "parse \"https://[127.0.0.1]/abc/?location=\": invalid IPv6 host",
    "validations": []
}

@SSushmitha8 SSushmitha8 merged commit 83bf4e2 into master Nov 4, 2025
3 of 7 checks passed
@harshavardhana harshavardhana deleted the fix-ipv6-error branch November 11, 2025 00:27
@ramondeklein
Copy link
Contributor

@SSushmitha8 It looks like this line also needs patching: https://github.com/minio/minio-go/blob/master/api.go#L1053

@SSushmitha8
Copy link
Contributor Author

SSushmitha8 commented Nov 19, 2025

@SSushmitha8 It looks like this line also needs patching: https://github.com/minio/minio-go/blob/master/api.go#L1053

I thought that's the right condition - if it's not a valid ip4 convert to ip6. Is there a issue that I could test to confirm @ramondeklein

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants