Darien Raymond 7 년 전
부모
커밋
fb7dd1a577
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/dns/server.go

+ 1 - 1
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