Fix generating reverse_mapping

This commit is contained in:
世界 2024-05-12 00:19:49 +08:00
parent 9ae4f644f1
commit c9527c63c3
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -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,