From 69820788b5bf3541725140ebd52b7d1c7806fd4c Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 27 Jun 2018 09:12:55 +0200 Subject: [PATCH] fix #1165 --- app/dns/udpns.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/dns/udpns.go b/app/dns/udpns.go index d1eed952a..4f021ea92 100644 --- a/app/dns/udpns.go +++ b/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()