client.go 283 B

12345678910111213141516
  1. package dns
  2. import (
  3. "v2ray.com/core/common/net"
  4. "v2ray.com/core/features"
  5. )
  6. // Client is a V2Ray feature for querying DNS information.
  7. type Client interface {
  8. features.Feature
  9. LookupIP(host string) ([]net.IP, error)
  10. }
  11. func ClientType() interface{} {
  12. return (*Client)(nil)
  13. }