From 2035bd654476a17ad0b476b66d1a7fdf1626c7bb Mon Sep 17 00:00:00 2001 From: tjq Date: Tue, 19 Jan 2021 09:19:43 +0800 Subject: [PATCH] feat: support using network interface name for NetUtils #179 --- .../java/com/github/kfcfans/powerjob/common/utils/NetUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerjob-common/src/main/java/com/github/kfcfans/powerjob/common/utils/NetUtils.java b/powerjob-common/src/main/java/com/github/kfcfans/powerjob/common/utils/NetUtils.java index 542393ab..8b0c5105 100644 --- a/powerjob-common/src/main/java/com/github/kfcfans/powerjob/common/utils/NetUtils.java +++ b/powerjob-common/src/main/java/com/github/kfcfans/powerjob/common/utils/NetUtils.java @@ -246,7 +246,7 @@ public class NetUtils { continue; } // 根据用户 -D 参数忽略网卡 - if (ignoreInterfaceByConfig(networkInterface.getDisplayName())) { + if (ignoreInterfaceByConfig(networkInterface.getDisplayName()) || ignoreInterfaceByConfig(networkInterface.getName())) { continue; } validNetworkInterfaces.add(networkInterface);