mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-03 04:22:43 +08:00
[feat] add IPv6 support for direct IP connections, refs #129
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user