v2ray-core/features/dns/client.go

17 lines
283 B
Go
Raw Normal View History

2018-10-11 22:34:31 +02:00
package dns
import (
2018-10-11 23:09:15 +02:00
"v2ray.com/core/common/net"
2018-10-11 22:34:31 +02:00
"v2ray.com/core/features"
)
// Client is a V2Ray feature for querying DNS information.
type Client interface {
features.Feature
LookupIP(host string) ([]net.IP, error)
}
2018-10-12 23:57:56 +02:00
func ClientType() interface{} {
return (*Client)(nil)
}