feat: optimize NetUtils

This commit is contained in:
tjq 2023-09-03 13:30:26 +08:00
parent 4a9f38c760
commit 966f09c034
2 changed files with 4 additions and 3 deletions

View File

@ -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) {

View File

@ -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 {