From f5578d425df2e2f2a44c4f9d35b6bdf1e081d30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 31 Dec 2024 15:58:53 +0800 Subject: [PATCH] Fix DNS server offset --- template/render_dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,