diff options
Diffstat (limited to 'plugin/forward/proxy.go')
-rw-r--r-- | plugin/forward/proxy.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugin/forward/proxy.go b/plugin/forward/proxy.go index 8454b296d..c788f98cc 100644 --- a/plugin/forward/proxy.go +++ b/plugin/forward/proxy.go @@ -57,8 +57,11 @@ func dnsClient(tlsConfig *tls.Config) *dns.Client { return c } -// SetTLSConfig sets the TLS config in the lower p.transport. -func (p *Proxy) SetTLSConfig(cfg *tls.Config) { p.transport.SetTLSConfig(cfg) } +// SetTLSConfig sets the TLS config in the lower p.transport and in the healthchecking client. +func (p *Proxy) SetTLSConfig(cfg *tls.Config) { + p.transport.SetTLSConfig(cfg) + p.client = dnsClient(cfg) +} // SetExpire sets the expire duration in the lower p.transport. func (p *Proxy) SetExpire(expire time.Duration) { p.transport.SetExpire(expire) } |