diff options
author | 2018-05-04 08:47:26 +0300 | |
---|---|---|
committer | 2018-05-04 07:47:26 +0200 | |
commit | be8fcc484a526e135bbaf1f2a95bece6d1bee761 (patch) | |
tree | d2ffe6fe415755a12edeff5384414ddc4148636f /plugin/forward/proxy.go | |
parent | 59dbcd32ea7db1581c4be4db6bfbf7dee2c049fe (diff) | |
download | coredns-be8fcc484a526e135bbaf1f2a95bece6d1bee761.tar.gz coredns-be8fcc484a526e135bbaf1f2a95bece6d1bee761.tar.zst coredns-be8fcc484a526e135bbaf1f2a95bece6d1bee761.zip |
plugin/forward: expose few methods and attributes to public (#1766)
* plugin/forward: expose few methods and attributes to public
* Update comments
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 b6b570149..0e0264b6b 100644 --- a/plugin/forward/proxy.go +++ b/plugin/forward/proxy.go @@ -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) |