mirror of
https://github.com/minio/minio.git
synced 2025-04-23 03:45:49 -04:00
fix: hostname inside --console-address not anonymized (#12743)
In case of non-distributed setup, if the server start command contains a `--console-address` flag and its value contains a hostname, it is not getting anonymized. Fixed by replacing the console host also with `server1`
This commit is contained in:
parent
c25ad94b7e
commit
fa98014bbe
@ -1655,7 +1655,8 @@ func (a adminAPIHandlers) HealthInfoHandler(w http.ResponseWriter, r *http.Reque
|
|||||||
anonymizeCmdLine := func(cmdLine string) string {
|
anonymizeCmdLine := func(cmdLine string) string {
|
||||||
if !globalIsDistErasure {
|
if !globalIsDistErasure {
|
||||||
// FS mode - single server - hard code to `server1`
|
// FS mode - single server - hard code to `server1`
|
||||||
return strings.Replace(cmdLine, globalLocalNodeName, "server1", -1)
|
anonCmdLine := strings.Replace(cmdLine, globalLocalNodeName, "server1", -1)
|
||||||
|
return strings.Replace(anonCmdLine, globalMinioConsoleHost, "server1", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Server start command regex groups:
|
// Server start command regex groups:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user