mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	IP找不到不再提示错误
This commit is contained in:
		@@ -99,7 +99,7 @@ func (this *IP2Region) MemorySearch(ipStr string) (ipInfo *IpInfo, err error) {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if dataPtr == 0 {
 | 
			
		||||
		return nil, errors.New("not found")
 | 
			
		||||
		return nil, nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	dataLen := (dataPtr >> 24) & 0xFF
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user