mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: optimize NetUtils
This commit is contained in:
parent
4a9f38c760
commit
966f09c034
@ -170,8 +170,8 @@ public class NetUtils {
|
||||
log.warn("[Net] findNetworkInterface failed", e);
|
||||
}
|
||||
|
||||
// sort by interface index, the smaller is preferred. (部分用户反馈 IP 获取逻辑反而劣化了,先注释)
|
||||
// validNetworkInterfaces.sort(Comparator.comparingInt(NetworkInterface::getIndex));
|
||||
// sort by interface index, the smaller is preferred.
|
||||
validNetworkInterfaces.sort(Comparator.comparingInt(NetworkInterface::getIndex));
|
||||
|
||||
// Try to find the preferred one
|
||||
for (NetworkInterface networkInterface : validNetworkInterfaces) {
|
||||
|
@ -24,6 +24,7 @@ import java.util.Optional;
|
||||
|
||||
/**
|
||||
* MINIO support
|
||||
* <a href="https://min.io/">High Performance Object Storage</a>
|
||||
* 配置项:
|
||||
* oms.storage.dfs.minio.endpoint
|
||||
* oms.storage.dfs.minio.bucketName
|
||||
@ -34,7 +35,7 @@ import java.util.Optional;
|
||||
* @since 2023/8/21
|
||||
*/
|
||||
@Slf4j
|
||||
@Priority(value = Integer.MAX_VALUE - 1)
|
||||
@Priority(value = Integer.MAX_VALUE - 3)
|
||||
@Conditional(MinioOssService.MinioOssCondition.class)
|
||||
public class MinioOssService extends AbstractDFsService {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user