the panic isnt right, we can still hit it, just return nil

This commit is contained in:
Miek Gieben 2012-09-08 11:09:40 +02:00
parent 8887878288
commit 288bb6f812
1 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,8 @@ func (mux *ServeMux) match(zone string, t uint16) Handler {
return d.Value.(Handler)
}
}
panic("dns: not reached")
// Nothing found at all
return nil
}
// Handle adds a handler to the ServeMux for pattern.