forked from mirror/serenity
Rename template.servers
to template.dns_servers
This commit is contained in:
parent
013014815f
commit
f6354971c4
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
"dns": "",
|
"dns": "",
|
||||||
"dns_local": "",
|
"dns_local": "",
|
||||||
|
"dns_servers": [],
|
||||||
"enable_fakeip": false,
|
"enable_fakeip": false,
|
||||||
"pre_dns_rules": [],
|
"pre_dns_rules": [],
|
||||||
"custom_dns_rules": [],
|
"custom_dns_rules": [],
|
||||||
@ -143,6 +144,12 @@ DNS server used for China DNS requests.
|
|||||||
|
|
||||||
`114.114.114.114` is used by default.
|
`114.114.114.114` is used by default.
|
||||||
|
|
||||||
|
#### dns_servers
|
||||||
|
|
||||||
|
List of [DNS Server](https://sing-box.sagernet.org/configuration/dns/server/).
|
||||||
|
|
||||||
|
Will be append to DNS servers.
|
||||||
|
|
||||||
#### enable_fakeip
|
#### enable_fakeip
|
||||||
|
|
||||||
Enable FakeIP.
|
Enable FakeIP.
|
||||||
|
@ -28,7 +28,7 @@ type _Template struct {
|
|||||||
RemoteResolve bool `json:"remote_resolve,omitempty"`
|
RemoteResolve bool `json:"remote_resolve,omitempty"`
|
||||||
|
|
||||||
// DNS
|
// DNS
|
||||||
Servers []option.DNSServerOptions `json:"servers,omitempty"`
|
DNSServers []option.DNSServerOptions `json:"dns_servers,omitempty"`
|
||||||
DNS string `json:"dns,omitempty"`
|
DNS string `json:"dns,omitempty"`
|
||||||
DNSLocal string `json:"dns_local,omitempty"`
|
DNSLocal string `json:"dns_local,omitempty"`
|
||||||
EnableFakeIP bool `json:"enable_fakeip,omitempty"`
|
EnableFakeIP bool `json:"enable_fakeip,omitempty"`
|
||||||
|
@ -109,7 +109,7 @@ func (t *Template) renderDNS(metadata M.Metadata, options *option.Options) error
|
|||||||
Address: "fakeip",
|
Address: "fakeip",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
options.DNS.Servers = append(options.DNS.Servers, t.Servers...)
|
options.DNS.Servers = append(options.DNS.Servers, t.DNSServers...)
|
||||||
options.DNS.Rules = []option.DNSRule{
|
options.DNS.Rules = []option.DNSRule{
|
||||||
{
|
{
|
||||||
Type: C.RuleTypeDefault,
|
Type: C.RuleTypeDefault,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user