mirror of
https://github.com/coredns/coredns.git
synced 2025-10-30 09:43:17 -04:00
middleware/autopath: some fixes (#883)
* middleware/autopath: some fixes This fix a small issue in autopath, but unearthed a bigger one. See #881. * Fix test
This commit is contained in:
@@ -31,6 +31,7 @@ var autopathTestCases = []test.Case{
|
||||
|
||||
func newTestAutoPath() *AutoPath {
|
||||
ap := new(AutoPath)
|
||||
ap.Zones = []string{"."}
|
||||
ap.Next = nextHandler(map[string]int{
|
||||
"b.example.org.": dns.RcodeNameError,
|
||||
"b.com.": dns.RcodeSuccess,
|
||||
|
||||
Reference in New Issue
Block a user