mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
Use rcode string in error message
So it's clearer what went wrong.
This commit is contained in:
committed by
Cuong Manh Le
parent
aad04200cb
commit
8ffb42962a
@@ -185,7 +185,7 @@ func (uc *UpstreamConfig) SetupBootstrapIP() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if r.Rcode != dns.RcodeSuccess {
|
if r.Rcode != dns.RcodeSuccess {
|
||||||
ProxyLog.Error().Msgf("could not resolve domain return code: %d, upstream", r.Rcode)
|
ProxyLog.Error().Msgf("could not resolve domain %q, return code: %s", uc.Domain, dns.RcodeToString[r.Rcode])
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(r.Answer) == 0 {
|
if len(r.Answer) == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user