mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	| @@ -12,7 +12,7 @@ type ClassRule struct { | ||||
| 	fromClass, toClass uint16 | ||||
| } | ||||
|  | ||||
| // Initializer | ||||
| // New initializes rule. | ||||
| func (rule ClassRule) New(args ...string) Rule { | ||||
| 	from, to := args[0], strings.Join(args[1:], " ") | ||||
| 	return &ClassRule{dns.StringToClass[from], dns.StringToClass[to]} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user