1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-05 02:29:13 -04:00

Feat: DNS hosts support multiple addresses (#884)

This commit is contained in:
Loyalsoldier
2021-04-10 21:56:08 +08:00
committed by GitHub
parent 400dc15c00
commit bada0e48b4
5 changed files with 182 additions and 122 deletions

View File

@@ -214,7 +214,7 @@ func (s *DNS) lookupIPInternal(domain string, option dns.IPOption) ([]net.IP, er
newError("domain replaced: ", domain, " -> ", addrs[0].Domain()).WriteToLog()
domain = addrs[0].Domain()
default: // Successfully found ip records in static host
newError("returning ", len(addrs), " IPs for domain ", domain).WriteToLog()
newError("returning ", len(addrs), " IPs for domain ", domain, " -> ", addrs).WriteToLog()
return toNetIP(addrs)
}