mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
249 B
21 lines
249 B
7 years ago
|
package server
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"v2ray.com/core/common/net"
|
||
|
)
|
||
|
|
||
|
type IPResult struct {
|
||
|
IP []net.IP
|
||
|
TTL time.Duration
|
||
|
}
|
||
|
|
||
|
type Querier interface {
|
||
|
QueryDomain(domain string) <-chan *IPResult
|
||
|
}
|
||
|
|
||
|
type UDPQuerier struct {
|
||
|
server net.Destination
|
||
|
}
|