mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-11-03 19:29:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			413 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			413 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package dns
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/v2fly/v2ray-core/v4/common/net"
 | 
						|
	"github.com/v2fly/v2ray-core/v4/features"
 | 
						|
)
 | 
						|
 | 
						|
type FakeDNSEngine interface {
 | 
						|
	features.Feature
 | 
						|
	GetFakeIPForDomain(domain string) []net.Address
 | 
						|
	GetDomainFromFakeDNS(ip net.Address) string
 | 
						|
}
 | 
						|
 | 
						|
type FakeDNSEngineRev0 interface {
 | 
						|
	FakeDNSEngine
 | 
						|
	IsIPInIPPool(ip net.Address) bool
 | 
						|
	GetFakeIPForDomain3(domain string, IPv4, IPv6 bool) []net.Address
 | 
						|
}
 |