diff options
Diffstat (limited to 'middleware/erratic/autopath.go')
-rw-r--r-- | middleware/erratic/autopath.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/middleware/erratic/autopath.go b/middleware/erratic/autopath.go new file mode 100644 index 000000000..79b0ec847 --- /dev/null +++ b/middleware/erratic/autopath.go @@ -0,0 +1,8 @@ +package erratic + +import "github.com/coredns/coredns/request" + +// AutoPath implements the AutoPathFunc call from the autopath middleware. +func (e *Erratic) AutoPath(state request.Request) []string { + return []string{"a.example.org.", "b.example.org.", ""} +} |