mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	plugin/file: optimize cname get rr by type (#5080)
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
This commit is contained in:
		| @@ -16,14 +16,3 @@ func SubTypeSignature(rrs []dns.RR, subtype uint16) []dns.RR { | ||||
| 	} | ||||
| 	return sigs | ||||
| } | ||||
|  | ||||
| // CNAMEForType returns the RR that have the qtype from targets. | ||||
| func CNAMEForType(rrs []dns.RR, qtype uint16) []dns.RR { | ||||
| 	ret := []dns.RR{} | ||||
| 	for _, target := range rrs { | ||||
| 		if target.Header().Rrtype == qtype { | ||||
| 			ret = append(ret, target) | ||||
| 		} | ||||
| 	} | ||||
| 	return ret | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user