Browse Source

Fix to work with latest dns library

commit 2a3b818b953114d365e45452cba38ab820150007
Author: Miek Gieben <[email protected]>
Date:   Sun Dec 2 09:29:54 2012 +0100

    Use much more descriptive names for the maps

     Alg_str -> AlgorithmToString
     Rr_str  -> TypeToString

    And for the reverse maps also.
Ask Bjørn Hansen 13 năm trước cách đây
mục cha
commit
3f21add759
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      serve.go

+ 1 - 1
serve.go

@@ -25,7 +25,7 @@ func serve(w dns.ResponseWriter, req *dns.Msg, z *Zone) {
 	qtype := req.Question[0].Qtype
 
 	logPrintf("[zone %s] incoming %s %s %d from %s\n", z.Origin, req.Question[0].Name,
-		dns.Rr_str[qtype], req.MsgHdr.Id, w.RemoteAddr())
+		dns.TypeToString[qtype], req.MsgHdr.Id, w.RemoteAddr())
 
 	// is this safe/atomic or does it need to go through a channel?
 	qCounter++