mirror of https://github.com/v2ray/v2ray-core
fix #1322
parent
37f838985c
commit
fb7dd1a577
|
@ -128,7 +128,7 @@ func (s *Server) LookupIP(domain string) ([]net.IP, error) {
|
||||||
if s.domainMatcher != nil {
|
if s.domainMatcher != nil {
|
||||||
idx := s.domainMatcher.Match(domain)
|
idx := s.domainMatcher.Match(domain)
|
||||||
if idx > 0 {
|
if idx > 0 {
|
||||||
ns := s.servers[idx]
|
ns := s.servers[s.domainIndexMap[idx]]
|
||||||
ips, err := s.queryIPTimeout(ns, domain)
|
ips, err := s.queryIPTimeout(ns, domain)
|
||||||
if len(ips) > 0 {
|
if len(ips) > 0 {
|
||||||
return ips, nil
|
return ips, nil
|
||||||
|
|
Loading…
Reference in New Issue