Browse Source

fix #1165

pull/1173/head
Darien Raymond 7 years ago
parent
commit
69820788b5
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 3
      app/dns/udpns.go

3
app/dns/udpns.go

@ -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()

Loading…
Cancel
Save