mirror of
https://github.com/coredns/coredns.git
synced 2025-10-31 18:23:13 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user