mirror of https://github.com/v2ray/v2ray-core
				
				
				
			fix ip check in ipnet
							parent
							
								
									a7ef82ffbc
								
							
						
					
					
						commit
						35ba8710e0
					
				| 
						 | 
					@ -61,7 +61,7 @@ func (this *IPNet) Contains(ip net.IP) bool {
 | 
				
			||||||
	originalValue := ipToUint32(ipv4)
 | 
						originalValue := ipToUint32(ipv4)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if entry, found := this.cache[originalValue]; found {
 | 
						if entry, found := this.cache[originalValue]; found {
 | 
				
			||||||
		if entry == 0 {
 | 
							if entry == 32 {
 | 
				
			||||||
			return true
 | 
								return true
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue