From f20c44597484e50220d4614b3e192be0bb24ace2 Mon Sep 17 00:00:00 2001 From: JimhHan <50871214+JimhHan@users.noreply.github.com> Date: Sat, 10 Apr 2021 00:33:55 +0800 Subject: [PATCH] Fix typo --- app/dns/dns.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/dns/dns.go b/app/dns/dns.go index fc2d7829..1ad75ada 100644 --- a/app/dns/dns.go +++ b/app/dns/dns.go @@ -198,7 +198,7 @@ func (s *DNS) lookupIPInternal(domain string, option dns.IPOption) ([]net.IP, er return nil, newError("empty domain name") } if isQuery(option) { - return nil, newError("empty option: I'm pretty sure it shouldn't happened.") + return nil, newError("empty option: Impossible.").AtWarning() } // Normalize the FQDN form query @@ -215,9 +215,10 @@ func (s *DNS) lookupIPInternal(domain string, option dns.IPOption) ([]net.IP, er case len(addrs) == 1 && addrs[0].Family().IsDomain(): // Domain replacement newError("domain replaced: ", domain, " -> ", addrs[0].Domain()).WriteToLog() domain = addrs[0].Domain() - default: // Successfully found ip records in static host + default: + // Successfully found ip records in static host. + // Skip hosts mapping result in FakeDNS query. if isIPQuery(option) { - // maybe our client prefer to query fake dns -_- newError("returning ", len(addrs), " IPs for domain ", domain).WriteToLog() return toNetIP(addrs) }