Fix error detection if query was blocked by upstream

This commit is contained in:
Daniel
2020-05-28 10:04:05 +02:00
parent 9b4d853af3
commit 2248026365
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ type BlockedUpstreamError struct {
}
func (blocked *BlockedUpstreamError) Error() string {
return fmt.Sprintf("Endpoint blocked by upstream DNS resolver %s", blocked.ResolverName)
return fmt.Sprintf("%s by upstream DNS resolver %s", ErrBlocked, blocked.ResolverName)
}
// Unwrap implements errors.Unwrapper