Allow specifying the local server with env variable _MINIO_SERVER_LOCAL (#19453)

* Allow specifying the local server, with env variable _MINIO_SERVER_LOCAL, in systems where the hostname cannot be resolved to local IP

* Limit scope of the _MINIO_SERVER_LOCAL solution to only containerized implementations
This commit is contained in:
Allan Roger Reid 2024-04-10 09:34:59 -07:00 committed by GitHub
parent 9496c17e13
commit f7ed9a75ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -807,7 +807,7 @@ func (p PoolEndpointList) UpdateIsLocal() error {
continue
}
if endpoint.Host == "" {
if endpoint.Host == "" || (orchestrated && env.Get("_MINIO_SERVER_LOCAL", "") == endpoint.Host) {
if !foundLocal {
foundLocal = true
}