fix: Display "<redacted>" instead of "host" in errors
@@ -198,7 +198,7 @@ func (endpoint *Endpoint) EvaluateHealth() *Result {
// Clean up parameters that we don't need to keep in the results
if endpoint.UIConfig.HideHostname {
for errIdx, errorString := range result.Errors {
- result.Errors[errIdx] = strings.ReplaceAll(errorString, result.Hostname, "host")
+ result.Errors[errIdx] = strings.ReplaceAll(errorString, result.Hostname, "<redacted>")
}
result.Hostname = ""
}
