mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
middleware/chaos: fix version (#669)
* middleware/chaos: fix version Move the version setting into a init function so it is done early. Then tweak the setup code for chaos a bit to correctly pick this version up. Add an integration test to pick this up in the toplevel test/ directory. Fixes #667 * Update tests
This commit is contained in:
committed by
John Belamaric
parent
7e6f5c77aa
commit
024f56682d
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user