diff options
Diffstat (limited to 'plugin/forward/proxy.go')
-rw-r--r-- | plugin/forward/proxy.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/forward/proxy.go b/plugin/forward/proxy.go index 0e0264b6b..588b21510 100644 --- a/plugin/forward/proxy.go +++ b/plugin/forward/proxy.go @@ -63,6 +63,9 @@ func (p *Proxy) SetTLSConfig(cfg *tls.Config) { p.client = dnsClient(cfg) } +// IsTLS returns true if proxy uses tls. +func (p *Proxy) IsTLS() bool { return p.transport.tlsConfig != nil } + // SetExpire sets the expire duration in the lower p.transport. func (p *Proxy) SetExpire(expire time.Duration) { p.transport.SetExpire(expire) } |