mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
plugin/forward: expose TLSConfig and error messages to public (#1781)
* plugin/forward: expose TLSConfig and error messages to public * Add IsTLS() instead of TLSConfig()
This commit is contained in:
committed by
Miek Gieben
parent
0e5e59c327
commit
b9f0d55fc9
@@ -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) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user