mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/forward: expose few methods and attributes to public (#1766)
* plugin/forward: expose few methods and attributes to public * Update comments
This commit is contained in:
committed by
Miek Gieben
parent
59dbcd32ea
commit
be8fcc484a
@@ -39,6 +39,9 @@ func NewProxy(addr string, tlsConfig *tls.Config) *Proxy {
|
||||
return p
|
||||
}
|
||||
|
||||
// Addr returns the address to forward to.
|
||||
func (p *Proxy) Addr() (addr string) { return p.addr }
|
||||
|
||||
// dnsClient returns a client used for health checking.
|
||||
func dnsClient(tlsConfig *tls.Config) *dns.Client {
|
||||
c := new(dns.Client)
|
||||
|
||||
Reference in New Issue
Block a user