From 9cf8afbbcce50292ce53191f1a16e602c59ab48b Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Thu, 17 Apr 2025 14:40:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20linux=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/wfc/common/license/license/AbstractServerInfos.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/wfc/common/license/license/AbstractServerInfos.java b/src/main/java/org/wfc/common/license/license/AbstractServerInfos.java index d813713..44ea7fd 100644 --- a/src/main/java/org/wfc/common/license/license/AbstractServerInfos.java +++ b/src/main/java/org/wfc/common/license/license/AbstractServerInfos.java @@ -86,8 +86,10 @@ public abstract class AbstractServerInfos { // } // } // } - InetAddress inetAddress = InetAddress.getByName("host.docker.internal"); - result.add(inetAddress); + InetAddress[] inetAddressArr = InetAddress.getAllByName("host.docker.internal"); + for (InetAddress inetAddress : inetAddressArr) { + result.add(inetAddress); + } return result; }