diff --git a/src/single_window/remote_peer_window.cpp b/src/single_window/remote_peer_window.cpp index 472991f..cd8c777 100644 --- a/src/single_window/remote_peer_window.cpp +++ b/src/single_window/remote_peer_window.cpp @@ -137,7 +137,7 @@ int Render::ConnectTo(const std::string &remote_id, const char *password, client_properties_[remote_id] = std::make_shared(); 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; memcpy(&props->params_, ¶ms_, sizeof(Params)); props->params_.user_id = props->local_id_.c_str();