aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-03-01 17:14:53 -0800
committerGravatar Miek Gieben <miek@miek.nl> 2018-03-01 17:14:53 -0800
commit32671bc9836cbe2187f7a6bf150dd1676430aad4 (patch)
tree305e9b8df274b7a2479afb0cbac8ed3d0a89dc6b
parent36e86231ad75381d511426e026364e8bb5171613 (diff)
downloadcoredns-32671bc9836cbe2187f7a6bf150dd1676430aad4.tar.gz
coredns-32671bc9836cbe2187f7a6bf150dd1676430aad4.tar.zst
coredns-32671bc9836cbe2187f7a6bf150dd1676430aad4.zip
plugin/auto: update some comments typos
Just happen to see these. Fix them.
-rw-r--r--plugin/auto/auto.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugin/auto/auto.go b/plugin/auto/auto.go
index ae1ce98d3..f8d253786 100644
--- a/plugin/auto/auto.go
+++ b/plugin/auto/auto.go
@@ -33,20 +33,18 @@ type (
// In the future this should be something like ZoneMeta that contains all this stuff.
transferTo []string
noReload bool
- upstream upstream.Upstream // Upstream for looking up names during the resolution process
+ upstream upstream.Upstream // Upstream for looking up names during the resolution process.
duration time.Duration
}
)
-// ServeDNS implements the plugin.Handle interface.
+// ServeDNS implements the plugin.Handler interface.
func (a Auto) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
state := request.Request{W: w, Req: r, Context: ctx}
qname := state.Name()
- // TODO(miek): match the qname better in the map
-
- // Precheck with the origins, i.e. are we allowed to looks here.
+ // Precheck with the origins, i.e. are we allowed to look here?
zone := plugin.Zones(a.Zones.Origins()).Matches(qname)
if zone == "" {
return plugin.NextOrFailure(a.Name(), a.Next, ctx, w, r)