aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/proxy.go
diff options
context:
space:
mode:
authorGravatar Ruslan Drozhdzh <30860269+rdrozhdzh@users.noreply.github.com> 2018-04-06 15:41:48 +0300
committerGravatar Miek Gieben <miek@miek.nl> 2018-04-06 13:41:48 +0100
commite46ee9d9cc197d74dac0cb6e8432f83d4f43d1a6 (patch)
tree66ac38903d67d57f0a23552f0be7cea3bd3bdd93 /plugin/forward/proxy.go
parent848a5d7c7909afbc381a0708dc4893c28a1df61c (diff)
downloadcoredns-e46ee9d9cc197d74dac0cb6e8432f83d4f43d1a6.tar.gz
coredns-e46ee9d9cc197d74dac0cb6e8432f83d4f43d1a6.tar.zst
coredns-e46ee9d9cc197d74dac0cb6e8432f83d4f43d1a6.zip
plugin/forward: retry on cached tcp connection closed by peer (#1655)
* plugin/forward: retry on cached tcp connection closed by peer * fix linter warnings * fixed unit test * modify error message
Diffstat (limited to 'plugin/forward/proxy.go')
-rw-r--r--plugin/forward/proxy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/forward/proxy.go b/plugin/forward/proxy.go
index 30bab52d1..02d3512cb 100644
--- a/plugin/forward/proxy.go
+++ b/plugin/forward/proxy.go
@@ -58,7 +58,7 @@ func (p *Proxy) SetTLSConfig(cfg *tls.Config) { p.transport.SetTLSConfig(cfg) }
func (p *Proxy) SetExpire(expire time.Duration) { p.transport.SetExpire(expire) }
// Dial connects to the host in p with the configured transport.
-func (p *Proxy) Dial(proto string) (*dns.Conn, error) { return p.transport.Dial(proto) }
+func (p *Proxy) Dial(proto string) (*dns.Conn, bool, error) { return p.transport.Dial(proto) }
// Yield returns the connection to the pool.
func (p *Proxy) Yield(c *dns.Conn) { p.transport.Yield(c) }