mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	HTTP DNS QueryRecord动作支持返回null
This commit is contained in:
		@@ -98,7 +98,7 @@ func (this *CustomHTTPProvider) QueryRecord(domain string, name string, recordTy
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if len(resp) == 0 {
 | 
			
		||||
	if len(resp) == 0 || string(resp) == "null" {
 | 
			
		||||
		return nil, nil
 | 
			
		||||
	}
 | 
			
		||||
	record := &dnstypes.Record{}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user