mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Use new style form to register directives
See
17709a7d3f
where there was a slight change (for the better) on how to register.
Fix the CoreDNS to adhire to this. Needs Caddy from master to compile at
this moment.
			
			
This commit is contained in:
		| @@ -13,7 +13,7 @@ const serverType = "dns" | |||||||
|  |  | ||||||
| func init() { | func init() { | ||||||
| 	caddy.RegisterServerType(serverType, caddy.ServerType{ | 	caddy.RegisterServerType(serverType, caddy.ServerType{ | ||||||
| 		Directives: directives, | 		Directives: func() []string { return directives }, | ||||||
| 		DefaultInput: func() caddy.Input { | 		DefaultInput: func() caddy.Input { | ||||||
| 			if Port == DefaultPort && Zone != "" { | 			if Port == DefaultPort && Zone != "" { | ||||||
| 				return caddy.CaddyfileInput{ | 				return caddy.CaddyfileInput{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user