0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 11:29:36 +03:00

Override destination if replaced in hosts

This commit is contained in:
世界
2021-09-28 14:41:31 +08:00
parent 50e576081e
commit 27224868ab
3 changed files with 44 additions and 6 deletions

View File

@ -24,6 +24,10 @@ type Client interface {
LookupIP(domain string, option IPOption) ([]net.IP, error)
}
type HostsLookup interface {
LookupHosts(domain string) *net.Address
}
// ClientType returns the type of Client interface. Can be used for implementing common.HasType.
//
// xray:api:beta