Skip to content

Commit

Permalink
fix: Display "<redacted>" instead of "host" in errors (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
TwiN committed Mar 16, 2022
1 parent fdec317 commit bd4b91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
}
Expand Down

0 comments on commit bd4b91b

Please sign in to comment.