Skip to content

Commit

Permalink
fix(libs/utils): use second addr returned by lookuphost instead of first
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Jun 23, 2023
1 parent f32c903 commit fda991e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func ValidateAddr(addr string) (string, error) {
if len(addrs) == 0 {
return addr, fmt.Errorf("no IP addresses found for DNS record: %v", addr)
}
addr = addrs[0]
addr = addrs[1]
}
return addr, nil
}

0 comments on commit fda991e

Please sign in to comment.