2022-07-06 15:11:48 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type DNSOptions struct {
|
|
|
|
Servers []DNSServerOptions `json:"servers,omitempty"`
|
2022-07-06 15:39:17 +00:00
|
|
|
DNSClientOptions
|
|
|
|
}
|
|
|
|
|
|
|
|
type DNSClientOptions struct {
|
|
|
|
DisableCache bool `json:"disable_cache,omitempty"`
|
|
|
|
DisableExpire bool `json:"disable_expire,omitempty"`
|
2022-07-06 15:11:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DNSServerOptions struct {
|
|
|
|
Tag string `json:"tag,omitempty"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
AddressResolver string `json:"address_resolver,omitempty"`
|
2022-07-06 15:39:17 +00:00
|
|
|
DialerOptions
|
2022-07-06 15:11:48 +00:00
|
|
|
}
|