sing-box/option/dns.go

19 lines
454 B
Go
Raw Normal View History

2022-07-06 15:11:48 +00:00
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"`
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"`
DialerOptions
2022-07-06 15:11:48 +00:00
}