add resolver for cmd

This commit is contained in:
ginuerzh
2022-01-18 23:54:59 +08:00
parent 24971091e3
commit a0ee8bc45c
11 changed files with 373 additions and 26 deletions

View File

@ -57,12 +57,12 @@ type BypassConfig struct {
type NameserverConfig struct {
Addr string
Chain string
Prefer string
ClientIP string `yaml:"clientIP"`
Hostname string
TTL time.Duration
Timeout time.Duration
Chain string `yaml:",omitempty"`
Prefer string `yaml:",omitempty"`
ClientIP string `yaml:"clientIP,omitempty"`
Hostname string `yaml:",omitempty"`
TTL time.Duration `yaml:",omitempty"`
Timeout time.Duration `yaml:",omitempty"`
}
type ResolverConfig struct {