mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 18:53:43 -04:00
Don't register quiet flag in register.go (#299)
This clashes to Caddy, which also has its own quiet flag. Move stuff around a bit, also to prevent cyclic imports.
This commit is contained in:
@@ -16,7 +16,6 @@ const serverType = "dns"
|
||||
|
||||
func init() {
|
||||
flag.StringVar(&Port, "port", DefaultPort, "Default port")
|
||||
flag.BoolVar(&Quiet, "quiet", false, "Quiet mode (no initialization output)")
|
||||
|
||||
caddy.RegisterServerType(serverType, caddy.ServerType{
|
||||
Directives: func() []string { return directives },
|
||||
@@ -138,7 +137,4 @@ var (
|
||||
|
||||
// GracefulTimeout is the maximum duration of a graceful shutdown.
|
||||
GracefulTimeout time.Duration
|
||||
|
||||
// Quiet mode will not show any informative output on initialization.
|
||||
Quiet bool
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user