Commit 440e9246 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Rename port to dns.port (#300)

Avoid clashing with other server types.
parent 9b5c9df3
......@@ -14,8 +14,10 @@ import (
const serverType = "dns"
// Any flags defined here, need to be namespaced to the serverType other
// wise they potentially clash with other server types.
func init() {
flag.StringVar(&Port, "port", DefaultPort, "Default port")
flag.StringVar(&Port, serverType+".port", DefaultPort, "Default port")
caddy.RegisterServerType(serverType, caddy.ServerType{
Directives: func() []string { return directives },
......
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