diff --git a/template/render_dns.go b/template/render_dns.go index 0c74e10..2326980 100644 --- a/template/render_dns.go +++ b/template/render_dns.go @@ -36,7 +36,6 @@ func (t *Template) renderDNS(metadata M.Metadata, options *option.Options) error domainStrategyLocal = 0 } options.DNS = &option.DNSOptions{ - Servers: t.Servers, ReverseMapping: !t.DisableTrafficBypass && metadata.Platform != M.PlatformUnknown && !metadata.Platform.IsApple(), DNSClientOptions: option.DNSClientOptions{ Strategy: domainStrategy, @@ -110,6 +109,7 @@ func (t *Template) renderDNS(metadata M.Metadata, options *option.Options) error Address: "fakeip", }) } + options.DNS.Servers = append(options.DNS.Servers, t.Servers...) options.DNS.Rules = []option.DNSRule{ { Type: C.RuleTypeDefault,