aboutsummaryrefslogtreecommitdiff
path: root/plugin/autopath/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/autopath/setup.go')
-rw-r--r--plugin/autopath/setup.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/autopath/setup.go b/plugin/autopath/setup.go
index c5a39a870..42b4b317a 100644
--- a/plugin/autopath/setup.go
+++ b/plugin/autopath/setup.go
@@ -26,6 +26,8 @@ func setup(c *caddy.Controller) error {
return plugin.Error("autopath", err)
}
+ c.OnStartup(OnStartupMetrics)
+
// Do this in OnStartup, so all plugin has been initialized.
c.OnStartup(func() error {
m := dnsserver.GetConfig(c).Handler(mw)