mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	plugin/log - Support for Metadata (#2251)
* - add metadata support to Log * - adapt ctx after rebase
This commit is contained in:
		
				
					committed by
					
						 John Belamaric
						John Belamaric
					
				
			
			
				
	
			
			
			
						parent
						
							35c5474660
						
					
				
				
					commit
					94c9aae323
				
			| @@ -1,6 +1,7 @@ | ||||
| package rewrite | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"fmt" | ||||
| 	"regexp" | ||||
| 	"strings" | ||||
| @@ -22,7 +23,7 @@ const ( | ||||
| 	NotMatch   = "not_match" | ||||
| ) | ||||
|  | ||||
| func newReplacer(r *dns.Msg) replacer.Replacer { return replacer.New(r, nil, "") } | ||||
| func newReplacer(r *dns.Msg) replacer.Replacer { return replacer.New(context.TODO(), r, nil, "") } | ||||
|  | ||||
| // condition is a rewrite condition. | ||||
| type condition func(string, string) bool | ||||
|   | ||||
		Reference in New Issue
	
	Block a user