clean println
This commit is contained in:
parent
58b5e93b8a
commit
503cf5176a
2 changed files with 0 additions and 4 deletions
|
@ -8,7 +8,6 @@ import (
|
|||
)
|
||||
|
||||
func (e Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||
println("ETCD MIDDLEWARE HIT")
|
||||
state := middleware.State{W: w, Req: r}
|
||||
zone := middleware.Zones(e.Zones).Matches(state.Name())
|
||||
if zone == "" {
|
||||
|
@ -49,8 +48,6 @@ func (e Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
|
|||
return dns.RcodeNameError, nil
|
||||
}
|
||||
if err != nil {
|
||||
println(err.Error())
|
||||
// TODO(miek): err or nil in this case?
|
||||
return dns.RcodeServerFailure, err
|
||||
}
|
||||
if len(records) > 0 {
|
||||
|
|
|
@ -15,7 +15,6 @@ func (z Zones) Matches(qname string) string {
|
|||
zone := ""
|
||||
// TODO(miek): use IsSubDomain here?
|
||||
for _, zname := range z {
|
||||
println(zname, qname)
|
||||
if strings.HasSuffix(qname, zname) {
|
||||
if len(zname) > len(zone) {
|
||||
zone = zname
|
||||
|
|
Loading…
Add table
Reference in a new issue