From fb7dd1a577c6580ad6908442b64fbebbf5defb78 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 19 Oct 2018 06:45:10 +0200 Subject: [PATCH] fix #1322 --- app/dns/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dns/server.go b/app/dns/server.go index 4d75edd55..d96efe70a 100644 --- a/app/dns/server.go +++ b/app/dns/server.go @@ -128,7 +128,7 @@ func (s *Server) LookupIP(domain string) ([]net.IP, error) { if s.domainMatcher != nil { idx := s.domainMatcher.Match(domain) if idx > 0 { - ns := s.servers[idx] + ns := s.servers[s.domainIndexMap[idx]] ips, err := s.queryIPTimeout(ns, domain) if len(ips) > 0 { return ips, nil