Fix main startup (#232)

Set version and name of the program. And then call coremain.Run().

The coremain split makes CoreDNS embeddable.

Also see #189 for an old PR.
This commit is contained in:
Miek Gieben
2016-08-23 16:36:29 +01:00
committed by GitHub
parent 2153d2defd
commit 47f4e165a0
6 changed files with 272 additions and 79 deletions

View File

@@ -47,4 +47,4 @@ func chaosParse(c *caddy.Controller) (string, map[string]bool, error) {
return version, authors, nil
}
const defaultVersion = "CoreDNS"
var defaultVersion = caddy.AppName + "-" + caddy.AppVersion