mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04: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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if endpoint.Host == "" {
|
if endpoint.Host == "" || (orchestrated && env.Get("_MINIO_SERVER_LOCAL", "") == endpoint.Host) {
|
||||||
if !foundLocal {
|
if !foundLocal {
|
||||||
foundLocal = true
|
foundLocal = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user