Fix gofmt errors in nameserver.
This commit is contained in:
1 parent
c187c9b290
commit
f735082d95
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ const (
|
|||||||
defPendingTimeout int = 5 // timeout for a resolution
|
defPendingTimeout int = 5 // timeout for a resolution
|
||||||
)
|
)
|
||||||
|
|
||||||
const nullTTL = 0 // a null TTL
|
const nullTTL = 0 // a null TTL
|
||||||
|
|
||||||
type entryStatus uint8
|
type entryStatus uint8
|
||||||
|
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ func (s *DNSServer) rdnsHandler(proto dnsProtocol) dns.HandlerFunc {
|
|||||||
lookups := []Lookup{s.Zone, s.mdnsCli}
|
lookups := []Lookup{s.Zone, s.mdnsCli}
|
||||||
maxLen := getMaxReplyLen(r, proto)
|
maxLen := getMaxReplyLen(r, proto)
|
||||||
|
|
||||||
Debug.Printf("Reverse query: %+v", q)
|
Debug.Printf("Reverse query: %+v", q)
|
||||||
reply, err := s.cache.Get(r, maxLen, time.Now())
|
reply, err := s.cache.Get(r, maxLen, time.Now())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == errNoLocalReplies {
|
if err == errNoLocalReplies {
|
||||||
@@ -300,7 +300,7 @@ func (s *DNSServer) rdnsHandler(proto dnsProtocol) dns.HandlerFunc {
|
|||||||
// catch unsupported queries
|
// catch unsupported queries
|
||||||
if q.Qtype != dns.TypePTR {
|
if q.Qtype != dns.TypePTR {
|
||||||
Warning.Printf("[dns msgid %d] Unexpected reverse query type %s: %+v",
|
Warning.Printf("[dns msgid %d] Unexpected reverse query type %s: %+v",
|
||||||
r.MsgHdr.Id, dns.TypeToString[q.Qtype], q)
|
r.MsgHdr.Id, dns.TypeToString[q.Qtype], q)
|
||||||
m := makeDNSNotImplResponse(r)
|
m := makeDNSNotImplResponse(r)
|
||||||
s.cache.Put(r, m, negLocalTTL, 0, now)
|
s.cache.Put(r, m, negLocalTTL, 0, now)
|
||||||
w.WriteMsg(m)
|
w.WriteMsg(m)
|
||||||
|
|||||||
+1
-1
@@ -53,7 +53,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
InitDefaultLogging(debug)
|
InitDefaultLogging(debug)
|
||||||
Info.Printf("WeaveDNS version %s\n", version) // first thing in log: the version
|
Info.Printf("WeaveDNS version %s\n", version) // first thing in log: the version
|
||||||
|
|
||||||
var zone = new(weavedns.ZoneDb)
|
var zone = new(weavedns.ZoneDb)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user