diff options
Diffstat (limited to 'middleware/proxy/lookup.go')
-rw-r--r-- | middleware/proxy/lookup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/proxy/lookup.go b/middleware/proxy/lookup.go index ac3da261d..0a2b809b6 100644 --- a/middleware/proxy/lookup.go +++ b/middleware/proxy/lookup.go @@ -1,6 +1,6 @@ package proxy -// function OTHER middleware might want to use to do lookup in the same +// functions OTHER middleware might want to use to do lookup in the same // style as the proxy. import ( @@ -77,8 +77,8 @@ func (p Proxy) lookup(state middleware.State, r *dns.Msg) (*dns.Msg, error) { // hosts until timeout (or until we get a nil host). for time.Now().Sub(start) < tryDuration { host := upstream.Select() + if host == nil { - // TODO(miek): if all HC fail, spray the targets. return nil, errUnreachable } |