mirror of
https://github.com/pgsty/minio.git
synced 2026-03-16 17:53:43 +01:00
admin: ServerInfo returns info without object layer initialized (#11142)
This commit is contained in:
@@ -353,6 +353,14 @@ func (endpoints Endpoints) GetString(i int) string {
|
||||
return endpoints[i].String()
|
||||
}
|
||||
|
||||
// GetAllStrings - returns allstring of all endpoints
|
||||
func (endpoints Endpoints) GetAllStrings() (all []string) {
|
||||
for _, e := range endpoints {
|
||||
all = append(all, e.String())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func hostResolveToLocalhost(endpoint Endpoint) bool {
|
||||
hostIPs, err := getHostIP(endpoint.Hostname())
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user