mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
[fix] fix local id when using as client
This commit is contained in:
@@ -137,7 +137,7 @@ int Render::ConnectTo(const std::string &remote_id, const char *password,
|
|||||||
client_properties_[remote_id] =
|
client_properties_[remote_id] =
|
||||||
std::make_shared<SubStreamWindowProperties>();
|
std::make_shared<SubStreamWindowProperties>();
|
||||||
auto props = client_properties_[remote_id];
|
auto props = client_properties_[remote_id];
|
||||||
props->local_id_ = "C-" + remote_id;
|
props->local_id_ = "C-" + std::string(client_id_);
|
||||||
props->remote_id_ = remote_id;
|
props->remote_id_ = remote_id;
|
||||||
memcpy(&props->params_, ¶ms_, sizeof(Params));
|
memcpy(&props->params_, ¶ms_, sizeof(Params));
|
||||||
props->params_.user_id = props->local_id_.c_str();
|
props->params_.user_id = props->local_id_.c_str();
|
||||||
|
|||||||
Reference in New Issue
Block a user