Merge branch 'master' of github.com:miekg/dns

This commit is contained in:
Miek Gieben 2013-06-24 19:05:51 +01:00
commit 070a02c253
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ func main() {
go func() {
err := dns.ListenAndServe(":8053", "udp", nil)
if err != nil {
log.Fatal("Failed to set tcp listener %s\n", err.Error())
log.Fatal("Failed to set udp listener %s\n", err.Error())
}
}()
sig := make(chan os.Signal)

View File

@ -86,8 +86,8 @@ func SplitLabels(s string) []string {
// CompareLabels compares the names s1 and s2 and
// returns how many labels they have in common starting from the right.
// The comparison stops at the first inequality. The labels are not downcased
// before the comparison.
// The comparison stops at the first inequality. The labels are not lower cased
// before the comparison, the caller should take care of this.
//
// www.miek.nl. and miek.nl. have two labels in common: miek and nl
// www.miek.nl. and www.bla.nl. have one label in common: nl