mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	| @@ -14,8 +14,10 @@ import ( | |||||||
|  |  | ||||||
| const serverType = "dns" | 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() { | func init() { | ||||||
| 	flag.StringVar(&Port, "port", DefaultPort, "Default port") | 	flag.StringVar(&Port, serverType+".port", DefaultPort, "Default port") | ||||||
|  |  | ||||||
| 	caddy.RegisterServerType(serverType, caddy.ServerType{ | 	caddy.RegisterServerType(serverType, caddy.ServerType{ | ||||||
| 		Directives: func() []string { return directives }, | 		Directives: func() []string { return directives }, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user