File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -276,17 +276,13 @@ func (im *TXTRegistry) Records(ctx context.Context) ([]*endpoint.Endpoint, error
276276	return  endpoints , nil 
277277}
278278
279- // generateTXTRecord generates TXT records in either both formats (old and new) or new format only, 
280- // depending on the newFormatOnly configuration. The old format is maintained for backwards 
281- // compatibility but can be disabled to reduce the number of DNS records. 
282279func  (im  * TXTRegistry ) generateTXTRecord (r  * endpoint.Endpoint ) []* endpoint.Endpoint  {
283280	return  im .generateTXTRecordWithFilter (r , func (ep  * endpoint.Endpoint ) bool  { return  true  })
284281}
285282
286283func  (im  * TXTRegistry ) generateTXTRecordWithFilter (r  * endpoint.Endpoint , filter  func (* endpoint.Endpoint ) bool ) []* endpoint.Endpoint  {
287284	endpoints  :=  make ([]* endpoint.Endpoint , 0 )
288285
289- 	// Always create new format record 
290286	recordType  :=  r .RecordType 
291287	// AWS Alias records are encoded as type "cname" 
292288	if  isAlias , found  :=  r .GetProviderSpecificProperty ("alias" ); found  &&  isAlias  ==  "true"  &&  recordType  ==  endpoint .RecordTypeA  {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments