From bbd54c34a4174e6366eea2c8a5d92dfe6e13453b Mon Sep 17 00:00:00 2001 From: Rodrigo Faselli <162915171+RF47@users.noreply.github.com> Date: Sun, 26 Apr 2026 09:18:10 -0300 Subject: [PATCH] Fix stealthmode (#13285) * attempt to fix stealthmode * Apply suggestion from @ianalexis Co-authored-by: Ian Bassi * Ignore ipv6 (BBS implementation) https://github.com/bambulab/BambuStudio/commit/65c693ae248936882ea121b072b7651eaac67bd3 https://github.com/bambulab/BambuStudio/commit/5c8b074b26d7636ad3112a7197fbc39838110790 * Revert "Ignore ipv6 (BBS implementation)" This reverts commit 50d2500cf48b6ea44d229fb71f6564c6d4d27c19. --------- Co-authored-by: Ian Bassi --- src/slic3r/GUI/GUI_App.cpp | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index f8d27c4631..54707e6dd6 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1005,11 +1005,13 @@ void GUI_App::post_init() CallAfter([this] { bool cw_showed = this->config_wizard_startup(); - std::string http_url = get_http_url(app_config->get_country_code()); - std::string language = GUI::into_u8(current_language_code()); - std::string network_ver = Slic3r::NetworkAgent::get_version(); - bool sys_preset = app_config->get("sync_system_preset") == "true"; - this->preset_updater->sync(http_url, language, network_ver, sys_preset ? preset_bundle : nullptr); + if (!app_config->get_stealth_mode()) { + std::string http_url = get_http_url(app_config->get_country_code()); + std::string language = GUI::into_u8(current_language_code()); + std::string network_ver = Slic3r::NetworkAgent::get_version(); + bool sys_preset = app_config->get("sync_system_preset") == "true"; + this->preset_updater->sync(http_url, language, network_ver, sys_preset ? preset_bundle : nullptr); + } this->check_new_version_sf(); if (is_user_login() && !app_config->get_stealth_mode()) { @@ -1814,7 +1816,7 @@ bool GUI_App::hot_reload_network_plugin() << ", m_agent = " << (m_agent ? "valid" : "null") << ", version = " << loaded_version; - if (success && m_agent && m_device_manager) { + if (success && m_agent && m_device_manager && !app_config->get_stealth_mode()) { BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": connecting to cloud server"; m_agent->connect_server(); BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": re-subscribing to cloud printers"; @@ -4925,6 +4927,10 @@ void GUI_App::on_update_machine_list(wxCommandEvent &evt) void GUI_App::on_user_login_handle(wxCommandEvent &evt) { if (!m_agent) { return; } + if (app_config->get_stealth_mode()) { + BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": stealth mode enabled, skipping cloud connection"; + return; + } int online_login = evt.GetInt(); m_agent->connect_server(); @@ -5683,6 +5689,11 @@ void GUI_App::on_check_privacy_update(wxCommandEvent& evt) void GUI_App::check_privacy_version(int online_login) { + if (app_config->get_stealth_mode()) { + request_user_handle(online_login); + return; + } + update_http_extra_header(); std::string query_params = "?policy/privacy=00.00.00.00"; std::string url = get_http_url(app_config->get_country_code()) + query_params;