diff --git a/HISTORY b/HISTORY index c3d13f3..a62ec4a 100644 --- a/HISTORY +++ b/HISTORY @@ -1,4 +1,7 @@ +Version 1.38 2025-11-27 + * bugfixed: loadStorageServersFromTracker correctly with rw option + Version 1.37 2025-11-06 * query file info support two combined flags: ProtoCommon.FDFS_QUERY_FINFO_FLAGS_NOT_CALC_CRC32 diff --git a/src/main/java/org/csource/fastdfs/ClientGlobal.java b/src/main/java/org/csource/fastdfs/ClientGlobal.java index 4470f1d..8fe62be 100644 --- a/src/main/java/org/csource/fastdfs/ClientGlobal.java +++ b/src/main/java/org/csource/fastdfs/ClientGlobal.java @@ -106,7 +106,7 @@ public class ClientGlobal { String[] ipAddresses = new String[lines.length]; for (String line : lines) { String[] cols = line.split(" "); - if (cols.length != 3) { + if (!(cols.length == 3 || cols.length == 4)) { throw new MyException("invalid line: " + line); }