mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-30 00:29:20 +02:00
f50eff5ebb
Co-authored-by: Xiaokang Wang <xiaokangwang@outlook.com> Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Co-authored-by: kslr <kslrwang@gmail.com>
16 lines
293 B
Go
16 lines
293 B
Go
package dns
|
|
|
|
import (
|
|
gonet "net"
|
|
|
|
"github.com/xtls/xray-core/common/net"
|
|
"github.com/xtls/xray-core/features"
|
|
)
|
|
|
|
type FakeDNSEngine interface {
|
|
features.Feature
|
|
GetFakeIPForDomain(domain string) []net.Address
|
|
GetDomainFromFakeDNS(ip net.Address) string
|
|
GetFakeIPRange() *gonet.IPNet
|
|
}
|