mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
plugin/auto: update some comments typos
Just happen to see these. Fix them.
This commit is contained in:
@@ -33,20 +33,18 @@ type (
|
|||||||
// In the future this should be something like ZoneMeta that contains all this stuff.
|
// In the future this should be something like ZoneMeta that contains all this stuff.
|
||||||
transferTo []string
|
transferTo []string
|
||||||
noReload bool
|
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
|
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) {
|
func (a Auto) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||||
state := request.Request{W: w, Req: r, Context: ctx}
|
state := request.Request{W: w, Req: r, Context: ctx}
|
||||||
qname := state.Name()
|
qname := state.Name()
|
||||||
|
|
||||||
// TODO(miek): match the qname better in the map
|
// Precheck with the origins, i.e. are we allowed to look here?
|
||||||
|
|
||||||
// Precheck with the origins, i.e. are we allowed to looks here.
|
|
||||||
zone := plugin.Zones(a.Zones.Origins()).Matches(qname)
|
zone := plugin.Zones(a.Zones.Origins()).Matches(qname)
|
||||||
if zone == "" {
|
if zone == "" {
|
||||||
return plugin.NextOrFailure(a.Name(), a.Next, ctx, w, r)
|
return plugin.NextOrFailure(a.Name(), a.Next, ctx, w, r)
|
||||||
|
|||||||
Reference in New Issue
Block a user