mirror of
https://github.com/coredns/coredns.git
synced 2025-11-08 21:16:24 -05:00
plugin/forward: added support for per-nameserver TLS SNI (#7633)
This commit is contained in:
@@ -151,6 +151,9 @@ func (t *Transport) SetExpire(expire time.Duration) { t.expire = expire }
|
||||
// SetTLSConfig sets the TLS config in transport.
|
||||
func (t *Transport) SetTLSConfig(cfg *tls.Config) { t.tlsConfig = cfg }
|
||||
|
||||
// GetTLSConfig returns the TLS config in transport.
|
||||
func (t *Transport) GetTLSConfig() *tls.Config { return t.tlsConfig }
|
||||
|
||||
const (
|
||||
defaultExpire = 10 * time.Second
|
||||
minDialTimeout = 1 * time.Second
|
||||
|
||||
@@ -56,6 +56,10 @@ func (p *Proxy) GetHealthchecker() HealthChecker {
|
||||
return p.health
|
||||
}
|
||||
|
||||
func (p *Proxy) GetTransport() *Transport {
|
||||
return p.transport
|
||||
}
|
||||
|
||||
func (p *Proxy) Fails() uint32 {
|
||||
return atomic.LoadUint32(&p.fails)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user