Fix: fakedns option (#879)

This commit is contained in:
Loyalsoldier 2021-04-09 22:02:42 +08:00 committed by GitHub
parent 3f40089caf
commit 108a700e85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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