From 108a700e85ea4b57d0a9fc89ab0395609015c714 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Fri, 9 Apr 2021 22:02:42 +0800 Subject: [PATCH] Fix: fakedns option (#879) --- app/dns/dns.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/dns/dns.go b/app/dns/dns.go index 1badb3e09..a3ef660df 100644 --- a/app/dns/dns.go +++ b/app/dns/dns.go @@ -172,7 +172,7 @@ func (s *DNS) LookupIP(domain string) ([]net.IP, error) { return s.lookupIPInternal(domain, dns.IPOption{ IPv4Enable: true, IPv6Enable: true, - FakeEnable: false, + FakeEnable: s.ipOption.FakeEnable, }) } @@ -181,7 +181,7 @@ func (s *DNS) LookupIPv4(domain string) ([]net.IP, error) { return s.lookupIPInternal(domain, dns.IPOption{ IPv4Enable: true, IPv6Enable: false, - FakeEnable: false, + FakeEnable: s.ipOption.FakeEnable, }) } @@ -190,7 +190,7 @@ func (s *DNS) LookupIPv6(domain string) ([]net.IP, error) { return s.lookupIPInternal(domain, dns.IPOption{ IPv4Enable: false, IPv6Enable: true, - FakeEnable: false, + FakeEnable: s.ipOption.FakeEnable, }) }