Commit 0be3fb49 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Set correct versioning for CoreDNS (#225)

This needs a patch in caddy to work properly, but we want something like
it anyway.

See https://github.com/mholt/caddy/pull/1058
parent 41660338
......@@ -10,15 +10,22 @@ import (
//go:generate go run plugin_generate.go
func main() {
// Default values for flags for CoreDNS.
setFlag()
setName()
caddymain.Run()
}
// setFlag sets flags to predefined values for CoreDNS.
func setFlag() {
flag.Set("type", "dns")
}
// Values specific for CoreDNS.
// setName sets application name and versioning information for CoreDNS.
func setName() {
caddy.DefaultConfigFile = "Corefile"
caddy.AppName = "coredns"
caddy.AppName = "CoreDNS"
caddy.AppVersion = version
caddymain.Run()
}
const version = "001"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment