Skip to content

Commit

Permalink
fix: for issue vesoft-inc#489
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzuyibao committed Nov 16, 2022
1 parent ba7064d commit 415cb0c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ private List<HostAddress> hostToIp(List<HostAddress> addresses)
throws UnknownHostException {
List<HostAddress> newAddrs = new ArrayList<>();
for (HostAddress addr : addresses) {
// get all host name
InetAddress[] inetAddresses = InetAddress.getAllByName(addr.getHost());
for (InetAddress inetAddress : inetAddresses) {
String ip = inetAddress.getHostAddress();
Expand Down

0 comments on commit 415cb0c

Please sign in to comment.