diff options
author | 2017-09-16 14:13:28 +0100 | |
---|---|---|
committer | 2017-09-16 14:13:28 +0100 | |
commit | be4770927048627b59a6ce80587d668d7c028518 (patch) | |
tree | 2a90130bb39467ff2ea879c8b4f204c39c64cf43 /plugin/autopath/setup.go | |
parent | 6f874f0bd12f70efb31c88945dd66293a781604e (diff) | |
download | coredns-be4770927048627b59a6ce80587d668d7c028518.tar.gz coredns-be4770927048627b59a6ce80587d668d7c028518.tar.zst coredns-be4770927048627b59a6ce80587d668d7c028518.zip |
More Middleware -> Plugin conversions (#1088)
Forgot about these.
Diffstat (limited to 'plugin/autopath/setup.go')
-rw-r--r-- | plugin/autopath/setup.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/autopath/setup.go b/plugin/autopath/setup.go index c83912a63..c5a39a870 100644 --- a/plugin/autopath/setup.go +++ b/plugin/autopath/setup.go @@ -49,8 +49,8 @@ func setup(c *caddy.Controller) error { return nil } -// allowedMiddleware has a list of plugin that can be used by autopath. -var allowedMiddleware = map[string]bool{ +// allowedPlugins has a list of plugin that can be used by autopath. +var allowedPlugins = map[string]bool{ "@kubernetes": true, "@erratic": true, } @@ -66,7 +66,7 @@ func autoPathParse(c *caddy.Controller) (*AutoPath, string, error) { } resolv := zoneAndresolv[len(zoneAndresolv)-1] if resolv[0] == '@' { - _, ok := allowedMiddleware[resolv] + _, ok := allowedPlugins[resolv] if ok { mw = resolv[1:] } |