Browse Source

fix a typo in local dns

Darien Raymond 7 years ago
parent
commit
6b355ef461
1 changed files with 1 additions and 1 deletions
  1. 1 1
      features/dns/localdns/client.go

+ 1 - 1
features/dns/localdns/client.go

@@ -26,7 +26,7 @@ func (*Client) LookupIP(host string) ([]net.IP, error) {
 		return nil, err
 	}
 	parsedIPs := make([]net.IP, 0, len(ips))
-	for _, ip := range parsedIPs {
+	for _, ip := range ips {
 		parsed := net.IPAddress(ip)
 		if parsed != nil {
 			parsedIPs = append(parsedIPs, parsed.IP())