Add disableCache/disableExpire option for dns client
This commit is contained in:
@@ -2,11 +2,17 @@ package option
|
||||
|
||||
type DNSOptions struct {
|
||||
Servers []DNSServerOptions `json:"servers,omitempty"`
|
||||
DNSClientOptions
|
||||
}
|
||||
|
||||
type DNSClientOptions struct {
|
||||
DisableCache bool `json:"disable_cache,omitempty"`
|
||||
DisableExpire bool `json:"disable_expire,omitempty"`
|
||||
}
|
||||
|
||||
type DNSServerOptions struct {
|
||||
Tag string `json:"tag,omitempty"`
|
||||
Address string `json:"address"`
|
||||
Detour string `json:"detour,omitempty"`
|
||||
AddressResolver string `json:"address_resolver,omitempty"`
|
||||
DialerOptions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user