From e8e8e84200b2e5039066e1d8f9aaf56d9b998ac0 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 5 Jun 2013 22:33:15 +0100 Subject: [PATCH] remove println --- defaults.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/defaults.go b/defaults.go index 54b120bd..ab4f75ea 100644 --- a/defaults.go +++ b/defaults.go @@ -160,7 +160,7 @@ func (dns *Msg) IsEdns0() *OPT { // the number of labels, total length and true, when a domain name is valid. // When false is returned the labelcount and length are not defined. func IsDomainName(s string) (uint8, uint8, bool) { // copied from net package. - // TODO(mg): check for \DDD + // TODO(mg): check for \DDD - seems to work fine without though // See RFC 1035, RFC 3696. l := len(s) if l == 0 || l > 255 { @@ -211,7 +211,6 @@ func IsDomainName(s string) (uint8, uint8, bool) { // copied from net package. case c == '.': // byte before dot cannot be dot if last == '.' { - println("dot dot") return 0, uint8(l - longer), false } if last == '\\' { // Ok, escaped dot.