fix: getAPIEndpoints() should return public_url (#12852)

fixes #12850
This commit is contained in:
Harshavardhana
2021-08-02 21:50:20 -07:00
committed by GitHub
parent ea64a9263c
commit 9371852c7d
3 changed files with 16 additions and 8 deletions

View File

@@ -177,6 +177,9 @@ func getConsoleEndpoints() (consoleEndpoints []string) {
}
func getAPIEndpoints() (apiEndpoints []string) {
if globalMinioEndpoint != "" {
return []string{globalMinioEndpoint}
}
var ipList []string
if globalMinioHost == "" {
ipList = sortIPs(mustGetLocalIP4().ToSlice())