make it compile
This commit is contained in:
parent
a8737b6741
commit
8bc979fe1e
|
@ -111,6 +111,8 @@ func TestPack(t *testing.T) {
|
|||
t.Fail()
|
||||
}
|
||||
}
|
||||
ns := NewRR("pool.ntp.org. 390 IN NS a.ntpns.org")
|
||||
t.Log("ns", ns.String())
|
||||
}
|
||||
|
||||
func TestCompressLenght(t *testing.T) {
|
||||
|
|
|
@ -141,9 +141,9 @@ func (mux *ServeMux) HandleRemove(pattern string) {
|
|||
func (mux *ServeMux) ServeDNS(w ResponseWriter, request *Msg) {
|
||||
var h Handler
|
||||
if len(request.Question) != 1 {
|
||||
h = FailedHander()
|
||||
h = FailedHandler()
|
||||
} else {
|
||||
if h = mux.match(request.Question[0].Name, request.Question[0].Qtype); h == nil
|
||||
if h = mux.match(request.Question[0].Name, request.Question[0].Qtype); h == nil {
|
||||
h = FailedHandler()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue