[feat] add IPv6 support for direct IP connections, refs #129

This commit is contained in:
dijunkun
2026-10-29 20:02:43 +08:00
parent f09a4c50d1
commit 7c6e14989f
18 changed files with 287 additions and 187 deletions
+2 -1
View File
@@ -181,7 +181,8 @@ bool Thumbnail::ReadRecord(const std::filesystem::path& path,
connection->lan.device_id.size() != 32 ||
connection->remote_id != LanRecordId(connection->lan.device_id) ||
!connection->lan.port || connection->lan.port > 65535 ||
connection->lan.address.size() > 15)
connection->lan.address.empty() ||
connection->lan.address.size() > 128)
return false;
} else if (kind != "cloud_id" || !IsRemoteId(connection->remote_id))
return false;