mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
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:
parent
9496c17e13
commit
f7ed9a75ba
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user