forked from mirror/serenity
Fix generating reverse_mapping
This commit is contained in:
parent
9ae4f644f1
commit
c9527c63c3
@ -23,7 +23,7 @@ func (t *Template) renderDNS(metadata M.Metadata, options *option.Options) error
|
|||||||
domainStrategy = option.DomainStrategy(dns.DomainStrategyPreferIPv4)
|
domainStrategy = option.DomainStrategy(dns.DomainStrategyPreferIPv4)
|
||||||
}
|
}
|
||||||
options.DNS = &option.DNSOptions{
|
options.DNS = &option.DNSOptions{
|
||||||
ReverseMapping: !t.DisableTrafficBypass && !metadata.Platform.IsApple(),
|
ReverseMapping: !t.DisableTrafficBypass && metadata.Platform != M.PlatformUnknown && !metadata.Platform.IsApple(),
|
||||||
DNSClientOptions: option.DNSClientOptions{
|
DNSClientOptions: option.DNSClientOptions{
|
||||||
Strategy: domainStrategy,
|
Strategy: domainStrategy,
|
||||||
IndependentCache: t.EnableFakeIP,
|
IndependentCache: t.EnableFakeIP,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user