From c9527c63c3425b5760d26a8ee12ba1d4a6452c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 12 May 2024 00:19:49 +0800 Subject: [PATCH] Fix generating `reverse_mapping` --- 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 4528309..671267c 100644 --- a/template/render_dns.go +++ b/template/render_dns.go @@ -23,7 +23,7 @@ func (t *Template) renderDNS(metadata M.Metadata, options *option.Options) error domainStrategy = option.DomainStrategy(dns.DomainStrategyPreferIPv4) } options.DNS = &option.DNSOptions{ - ReverseMapping: !t.DisableTrafficBypass && !metadata.Platform.IsApple(), + ReverseMapping: !t.DisableTrafficBypass && metadata.Platform != M.PlatformUnknown && !metadata.Platform.IsApple(), DNSClientOptions: option.DNSClientOptions{ Strategy: domainStrategy, IndependentCache: t.EnableFakeIP,