mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -04:00
Parse fix (#974)
* mw/kubernetes: add apex test This adds small test case for apex queries: SOA and HINFO. Fix (obvious) parse bug in parse.go. * Test Ns request also here
This commit is contained in:
@@ -50,6 +50,9 @@ func parseRequest(state request.Request) (r recordRequest, err error) {
|
||||
// *_protocol._port
|
||||
|
||||
last := len(segs) - 1
|
||||
if last < 0 {
|
||||
return r, nil
|
||||
}
|
||||
r.podOrSvc = segs[last]
|
||||
if r.podOrSvc != Pod && r.podOrSvc != Svc {
|
||||
return r, errInvalidRequest
|
||||
|
||||
Reference in New Issue
Block a user