2022-07-06 23:11:48 +08:00
|
|
|
package option
|
|
|
|
|
|
|
|
type DNSOptions struct {
|
2022-07-11 13:21:17 +08:00
|
|
|
Servers []DNSServerOptions `json:"servers,omitempty"`
|
|
|
|
Rules []DNSRule `json:"rules,omitempty"`
|
|
|
|
Final string `json:"final,omitempty"`
|
2022-07-06 23:39:17 +08:00
|
|
|
DNSClientOptions
|
|
|
|
}
|
|
|
|
|
|
|
|
type DNSClientOptions struct {
|
2022-07-11 13:21:17 +08:00
|
|
|
Strategy DomainStrategy `json:"strategy,omitempty"`
|
|
|
|
DisableCache bool `json:"disable_cache,omitempty"`
|
|
|
|
DisableExpire bool `json:"disable_expire,omitempty"`
|
2022-07-06 23:11:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type DNSServerOptions struct {
|
2022-07-11 18:44:59 +08:00
|
|
|
Tag string `json:"tag,omitempty"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
AddressResolver string `json:"address_resolver,omitempty"`
|
|
|
|
AddressStrategy DomainStrategy `json:"address_strategy,omitempty"`
|
|
|
|
AddressFallbackDelay Duration `json:"address_fallback_delay,omitempty"`
|
2022-08-22 12:01:50 +08:00
|
|
|
Strategy DomainStrategy `json:"strategy,omitempty"`
|
2022-07-11 18:44:59 +08:00
|
|
|
Detour string `json:"detour,omitempty"`
|
2022-07-06 23:11:48 +08:00
|
|
|
}
|