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:
parent
6cc3f47d46
commit
4d0dae8deb
3 changed files with 29 additions and 16 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue