mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: rollback NetUtils's interface index sort
This commit is contained in:
parent
bdcc9b131d
commit
91abbc03d9
@ -170,8 +170,8 @@ public class NetUtils {
|
|||||||
log.warn("[Net] findNetworkInterface failed", e);
|
log.warn("[Net] findNetworkInterface failed", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
// sort by interface index, the smaller is preferred.
|
// sort by interface index, the smaller is preferred. (部分用户反馈 IP 获取逻辑反而劣化了,先注释)
|
||||||
validNetworkInterfaces.sort(Comparator.comparingInt(NetworkInterface::getIndex));
|
// validNetworkInterfaces.sort(Comparator.comparingInt(NetworkInterface::getIndex));
|
||||||
|
|
||||||
// Try to find the preferred one
|
// Try to find the preferred one
|
||||||
for (NetworkInterface networkInterface : validNetworkInterfaces) {
|
for (NetworkInterface networkInterface : validNetworkInterfaces) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user