mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 20:15:46 +00:00
add dns handler
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package resolver
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
type Resolver interface {
|
||||
// Resolve returns a slice of the host's IPv4 and IPv6 addresses.
|
||||
Resolve(ctx context.Context, host string) ([]net.IP, error)
|
||||
}
|
||||
Reference in New Issue
Block a user