mirror of https://github.com/v2ray/v2ray-core
fix #1165
parent
4477e7436b
commit
69820788b5
|
@ -230,7 +230,10 @@ func (s *ClassicNameServer) sendQuery(ctx context.Context, domain string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *ClassicNameServer) findIPsForDomain(domain string) []net.IP {
|
func (s *ClassicNameServer) findIPsForDomain(domain string) []net.IP {
|
||||||
|
s.RLock()
|
||||||
records, found := s.ips[domain]
|
records, found := s.ips[domain]
|
||||||
|
s.RUnlock()
|
||||||
|
|
||||||
if found && len(records) > 0 {
|
if found && len(records) > 0 {
|
||||||
var ips []net.IP
|
var ips []net.IP
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
|
Loading…
Reference in New Issue