diff options
Diffstat (limited to 'coremain/run.go')
-rw-r--r-- | coremain/run.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coremain/run.go b/coremain/run.go index 2ae9d0b32..1c29b4be7 100644 --- a/coremain/run.go +++ b/coremain/run.go @@ -50,6 +50,9 @@ func init() { caddy.RegisterCaddyfileLoader("flag", caddy.LoaderFunc(confLoader)) caddy.SetDefaultCaddyfileLoader("default", caddy.LoaderFunc(defaultLoader)) + + caddy.AppName = coreName + caddy.AppVersion = coreVersion } // Run is CoreDNS's main() function. @@ -57,9 +60,6 @@ func Run() { flag.Parse() - caddy.AppName = coreName - caddy.AppVersion = coreVersion - // Set up process log before anything bad happens switch logfile { case "stdout": |