diff --git a/src/libslic3r/AppConfig.cpp b/src/libslic3r/AppConfig.cpp index 527c7c4f2..d6425ac39 100644 --- a/src/libslic3r/AppConfig.cpp +++ b/src/libslic3r/AppConfig.cpp @@ -343,13 +343,6 @@ void AppConfig::set_defaults() set_str("print", "timelapse", "1"); } - if (get("client_id").empty()) { - boost::uuids::uuid uuid = boost::uuids::random_generator()(); - auto client_id = boost::uuids::to_string(uuid); - boost::algorithm::replace_all(client_id, "-", ""); - set("client_id", client_id); - } - // Remove legacy window positions/sizes erase("app", "main_frame_maximized"); erase("app", "main_frame_pos"); diff --git a/src/slic3r/GUI/MediaFilePanel.cpp b/src/slic3r/GUI/MediaFilePanel.cpp index c38a20aa2..da3dbb85c 100644 --- a/src/slic3r/GUI/MediaFilePanel.cpp +++ b/src/slic3r/GUI/MediaFilePanel.cpp @@ -211,8 +211,6 @@ MediaFilePanel::~MediaFilePanel() SetMachineObject(nullptr); } -wxString hide_id_middle_string(wxString const &str, size_t offset = 0, size_t length = -1); - void MediaFilePanel::SetMachineObject(MachineObject* obj) { std::string machine = obj ? obj->dev_id : ""; @@ -476,7 +474,7 @@ void MediaFilePanel::fetchUrl(boost::weak_ptr wfs) url += "&device=" + m_machine; url += "&net_ver=" + agent_version; url += "&dev_ver=" + m_dev_ver; - url += "&cli_id=" + wxGetApp().app_config->get("client_id"); + url += "&cli_id=" + wxGetApp().app_config->get("slicer_uuid"); url += "&cli_ver=" + std::string(SLIC3R_VERSION); fs->SetUrl(url); return; @@ -503,10 +501,10 @@ void MediaFilePanel::fetchUrl(boost::weak_ptr wfs) url += "&device=" + m; url += "&net_ver=" + v; url += "&dev_ver=" + dv; - url += "&cli_id=" + wxGetApp().app_config->get("client_id"); + url += "&cli_id=" + wxGetApp().app_config->get("slicer_uuid"); url += "&cli_ver=" + std::string(SLIC3R_VERSION); } - BOOST_LOG_TRIVIAL(info) << "MediaFilePanel::fetchUrl: camera_url: " << hide_id_middle_string(hide_passwd(url, {"authkey=", "passwd="}), 9, 20); + BOOST_LOG_TRIVIAL(info) << "MediaFilePanel::fetchUrl: camera_url: " << hide_passwd(url, {"?uid=", "authkey=", "passwd="}); CallAfter([=] { boost::shared_ptr fs(wfs.lock()); if (!fs || fs != m_image_grid->GetFileSystem()) return; diff --git a/src/slic3r/GUI/MediaPlayCtrl.cpp b/src/slic3r/GUI/MediaPlayCtrl.cpp index 17172832a..176ad67a2 100644 --- a/src/slic3r/GUI/MediaPlayCtrl.cpp +++ b/src/slic3r/GUI/MediaPlayCtrl.cpp @@ -282,7 +282,7 @@ void MediaPlayCtrl::Play() url += "&device=" + m_machine; url += "&net_ver=" + agent_version; url += "&dev_ver=" + m_dev_ver; - url += "&cli_id=" + wxGetApp().app_config->get("client_id"); + url += "&cli_id=" + wxGetApp().app_config->get("slicer_uuid"); url += "&cli_ver=" + std::string(SLIC3R_VERSION); BOOST_LOG_TRIVIAL(info) << "MediaPlayCtrl: " << hide_passwd(hide_id_middle_string(url, url.find(m_lan_ip), m_lan_ip.length()), {m_lan_passwd}); m_url = url; @@ -325,7 +325,7 @@ void MediaPlayCtrl::Play() url += "&device=" + into_u8(m); url += "&net_ver=" + v; url += "&dev_ver=" + dv; - url += "&cli_id=" + wxGetApp().app_config->get("client_id"); + url += "&cli_id=" + wxGetApp().app_config->get("slicer_uuid"); url += "&cli_ver=" + std::string(SLIC3R_VERSION); } BOOST_LOG_TRIVIAL(info) << "MediaPlayCtrl: " << hide_id_middle_string(hide_passwd(url, {"authkey=", "passwd="}), 9, 20) << "tutk_state: " << m_tutk_state; @@ -558,7 +558,7 @@ void MediaPlayCtrl::ToggleStream() url += "&device=" + m; url += "&net_ver=" + v; url += "&dev_ver=" + dv; - url += "&cli_id=" + wxGetApp().app_config->get("client_id"); + url += "&cli_id=" + wxGetApp().app_config->get("slicer_uuid"); url += "&cli_ver=" + std::string(SLIC3R_VERSION); } BOOST_LOG_TRIVIAL(info) << "MediaPlayCtrl::ToggleStream: " << hide_id_middle_string(hide_passwd(url, {"authkey=", "passwd="}), 9, 20);