aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/proxy.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/forward/proxy.go')
-rw-r--r--plugin/forward/proxy.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/forward/proxy.go b/plugin/forward/proxy.go
index 02d3512cb..55f285359 100644
--- a/plugin/forward/proxy.go
+++ b/plugin/forward/proxy.go
@@ -22,6 +22,8 @@ type Proxy struct {
// health checking
probe *up.Probe
fails uint32
+
+ avgRtt int64
}
// NewProxy returns a new proxy.
@@ -31,6 +33,7 @@ func NewProxy(addr string, tlsConfig *tls.Config) *Proxy {
fails: 0,
probe: up.New(),
transport: newTransport(addr, tlsConfig),
+ avgRtt: int64(timeout / 2),
}
p.client = dnsClient(tlsConfig)
return p