fix a typo in local dns

pull/1469/head v4.8.0
Darien Raymond 2018-12-06 21:34:05 +01:00
parent f49f85b5bd
commit 6b355ef461
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

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