Skip to content

Commit

Permalink
Merge branch 'refs/heads/develop' into dev-8604
Browse files Browse the repository at this point in the history
  • Loading branch information
yx9o committed Aug 30, 2024
2 parents bd8b832 + b9d9b3f commit 2c4191c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ public static InetAddress getLocalInetAddress() {
ArrayList<InetAddress> ipv6Result = new ArrayList<>();
List<InetAddress> localInetAddressList = getLocalInetAddressList();
for (InetAddress inetAddress : localInetAddressList) {
// Skip loopback addresses
if (inetAddress.isLoopbackAddress()) {
continue;
}
if (inetAddress instanceof Inet6Address) {
ipv6Result.add(inetAddress);
} else {
Expand Down

0 comments on commit 2c4191c

Please sign in to comment.