mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: support using network interface name for NetUtils #179
This commit is contained in:
parent
9e349a202a
commit
2035bd6544
@ -246,7 +246,7 @@ public class NetUtils {
|
||||
continue;
|
||||
}
|
||||
// 根据用户 -D 参数忽略网卡
|
||||
if (ignoreInterfaceByConfig(networkInterface.getDisplayName())) {
|
||||
if (ignoreInterfaceByConfig(networkInterface.getDisplayName()) || ignoreInterfaceByConfig(networkInterface.getName())) {
|
||||
continue;
|
||||
}
|
||||
validNetworkInterfaces.add(networkInterface);
|
||||
|
Loading…
x
Reference in New Issue
Block a user