1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 01:45:23 +00:00
This commit is contained in:
Darien Raymond 2018-06-27 09:12:55 +02:00
parent 4477e7436b
commit 69820788b5
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -230,7 +230,10 @@ func (s *ClassicNameServer) sendQuery(ctx context.Context, domain string) {
}
func (s *ClassicNameServer) findIPsForDomain(domain string) []net.IP {
s.RLock()
records, found := s.ips[domain]
s.RUnlock()
if found && len(records) > 0 {
var ips []net.IP
now := time.Now()