diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 14a53b354..1651f6701 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -1185,6 +1185,48 @@ void msgBox(SessionID sessionId, String type, String title, String text, VoidCallback? onSubmit, int? submitTimeout}) { dialogManager.dismissAll(); + if (type.contains('insecure-connection')) { + Future closeSession() async { + await bind.sessionSetCommon( + sessionId: sessionId, + key: 'continue-insecure-connection', + value: 'N', + ); + dialogManager.dismissAll(); + closeConnection(); + } + + void continueSession() { + unawaited( + bind.sessionSetCommon( + sessionId: sessionId, + key: 'continue-insecure-connection', + value: 'Y', + ), + ); + dialogManager.dismissAll(); + } + + dialogManager.show( + (setState, close, context) => CustomAlertDialog( + title: null, + content: SelectionArea(child: msgboxContent(type, title, text)), + actions: [ + dialogButton( + 'Continue', + onPressed: continueSession, + isOutline: true, + ), + dialogButton('Disconnect', onPressed: closeSession), + ], + onSubmit: closeSession, + onCancel: closeSession, + ), + tag: '$sessionId-$type-$title-$text-$link', + ); + return; + } + List buttons = []; bool hasOk = false; submit() { diff --git a/flutter/lib/web/bridge.dart b/flutter/lib/web/bridge.dart index 2df0b3426..ac48dfb0f 100644 --- a/flutter/lib/web/bridge.dart +++ b/flutter/lib/web/bridge.dart @@ -1914,6 +1914,15 @@ class RustdeskImpl { throw UnimplementedError("sessionHandleScreenshot"); } + Future sessionSetCommon( + {required UuidValue sessionId, required String key, required String value, dynamic hint}) { + js.context.callMethod('setByName', [ + 'common', + jsonEncode({'name': key, 'value': value}) + ]); + return Future.value(); + } + String? sessionGetCommonSync( {required UuidValue sessionId, required String key, diff --git a/src/client.rs b/src/client.rs index 680ed1bec..dcd5941df 100644 --- a/src/client.rs +++ b/src/client.rs @@ -3792,6 +3792,7 @@ pub trait Interface: Send + Clone + 'static + Sized { #[derive(Clone)] pub enum Data { Close, + RejectInsecureConnection, Login((String, String, String, bool)), Message(Message), SendFiles((i32, JobType, String, String, i32, bool, bool)), @@ -3815,11 +3816,33 @@ pub enum Data { ElevateWithLogon(String, String), NewVoiceCall, CloseVoiceCall, + ContinueInsecureConnection, ResetDecoder(Option), RenameFile((i32, String, String, bool)), TakeScreenshot((i32, String)), } +pub async fn confirm_insecure_connection( + interface: &impl Interface, + receiver: &mut UnboundedReceiver, +) -> bool { + interface.msgbox( + "insecure-connection-nocancel-hasclose", + "Insecure Connection", + "conn-e2ee-unavailable-tip", + "", + ); + while let Some(data) = receiver.recv().await { + match data { + Data::ContinueInsecureConnection => return true, + Data::RejectInsecureConnection => return false, + Data::Close => return false, + _ => {} + } + } + false +} + /// Keycode for key events. #[derive(Clone, Debug)] pub enum Key { diff --git a/src/client/io_loop.rs b/src/client/io_loop.rs index a97b6ea70..c0eb7fb57 100644 --- a/src/client/io_loop.rs +++ b/src/client/io_loop.rs @@ -14,6 +14,7 @@ use crate::{ // Empirical no-data window before exposing the restart reconnect state to the UI. // Restart msgbox text is kept as a legacy UI fallback; Flutter handles the type as a control event. const RESTART_REMOTE_DEVICE_NO_DATA_TIMEOUT: Duration = Duration::from_secs(5); +const KCP_CLOSE_REASON_FLUSH_DELAY: Duration = Duration::from_millis(30); #[cfg(feature = "unix-file-copy-paste")] use crate::{clipboard::try_empty_clipboard_files, clipboard_file::unix_file_clip}; #[cfg(any( @@ -183,8 +184,20 @@ impl Remote { .lock() .unwrap() .set_connected(); + let is_secured = peer.is_secured(); self.handler - .set_connection_type(peer.is_secured(), direct, stream_type); // flutter -> connection_ready + .set_connection_type(is_secured, direct, stream_type); // flutter -> connection_ready + if !is_secured + && !crate::common::is_direct_ip_access(&self.handler.get_id()) + && !client::confirm_insecure_connection(&self.handler, &mut self.receiver).await + { + self.send_close_reason(&mut peer, "").await; + if kcp.is_some() { + tokio::time::sleep(KCP_CLOSE_REASON_FLUSH_DELAY).await; + } + self.handle_disconnected(round); + return; + } self.handler.update_direct(Some(direct)); if conn_type == ConnType::DEFAULT_CONN || conn_type == ConnType::VIEW_CAMERA { self.handler @@ -338,13 +351,17 @@ impl Remote { self.send_close_reason(&mut peer, "kcp").await; // KCP does not send messages immediately, so wait to ensure the last message is sent. // 1ms works in my test, but 30ms is more reliable. - tokio::time::sleep(Duration::from_millis(30)).await; + tokio::time::sleep(KCP_CLOSE_REASON_FLUSH_DELAY).await; } } Err(err) => { self.handler.on_establish_connection_error(err.to_string()); } } + self.handle_disconnected(round); + } + + fn handle_disconnected(&self, round: u32) { // set_disconnected_ok is used to check if new connection round is started. let _set_disconnected_ok = self .handler diff --git a/src/common.rs b/src/common.rs index 5aed8c1a4..b875d548c 100644 --- a/src/common.rs +++ b/src/common.rs @@ -2619,6 +2619,10 @@ pub fn get_control_permission( } } +pub fn is_direct_ip_access(peer: &str) -> bool { + hbb_common::is_ip_str(peer) || hbb_common::is_domain_port_str(peer) +} + #[cfg(test)] mod tests { use super::*; diff --git a/src/flutter_ffi.rs b/src/flutter_ffi.rs index 315df5e5b..0777443cf 100644 --- a/src/flutter_ffi.rs +++ b/src/flutter_ffi.rs @@ -3028,6 +3028,16 @@ pub fn main_set_common(_key: String, _value: String) { } } +pub fn session_set_common(session_id: SessionID, key: String, value: String) { + if let Some(s) = sessions::get_session_by_session_id(&session_id) { + if key == "continue-insecure-connection" + { + s.continue_insecure_connection(value == "Y"); + return; + } + } +} + pub fn session_get_common_sync( session_id: SessionID, key: String, diff --git a/src/lang/ar.rs b/src/lang/ar.rs index 2b7e8d687..b73147b35 100644 --- a/src/lang/ar.rs +++ b/src/lang/ar.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "اتصال الوسيط"), ("Secure Connection", "اتصال آمن"), ("Insecure Connection", "اتصال غير آمن"), + ("Continue", ""), ("Scale original", "المقياس الأصلي"), ("Scale adaptive", "مقياس التكيف"), ("General", "عام"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "الإظهار على شريط الأدوات المُصغّر"), ("All monitors", "جميع الشاشات"), ("#{} monitor", "الشاشة رقم {}"), + ("conn-e2ee-unavailable-tip", "تعذر التحقق من التشفير من طرف إلى طرف.\nقد يكون الجهاز البعيد ما يزال قيد الإعداد. حاول مرة أخرى لاحقًا.\nإذا استمر حدوث ذلك، فقد يكون الخادم غير موثوق به.\nهل تريد المتابعة على أي حال؟"), ].iter().cloned().collect(); } diff --git a/src/lang/be.rs b/src/lang/be.rs index d417a448e..5c61fe4f5 100644 --- a/src/lang/be.rs +++ b/src/lang/be.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Рэтрансляванае падключэнне"), ("Secure Connection", "Бяспечнае падключэнне"), ("Insecure Connection", "Нябяспечнае падключэнне"), + ("Continue", ""), ("Scale original", "Арыгінальны маштаб"), ("Scale adaptive", "Адаптыўны маштаб"), ("General", "Агульныя"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Паказваць на згорнутай панэлі інструментаў"), ("All monitors", "Усе манітори"), ("#{} monitor", "Манітор {}"), + ("conn-e2ee-unavailable-tip", "Не ўдалося праверыць скразное шыфраванне.\nАддаленая прылада, магчыма, яшчэ наладжваецца. Паспрабуйце пазней.\nКалі гэта будзе паўтарацца, сервер можа быць ненадзейным.\nУсё роўна працягнуць?"), ].iter().cloned().collect(); } diff --git a/src/lang/bg.rs b/src/lang/bg.rs index 0f7293426..30d01b381 100644 --- a/src/lang/bg.rs +++ b/src/lang/bg.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Релейна връзка"), ("Secure Connection", "Сигурна връзка"), ("Insecure Connection", "Несигурна връзка"), + ("Continue", ""), ("Scale original", "Оригинален мащаб"), ("Scale adaptive", "Приспособимо мащабиране"), ("General", "Основен"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Показване в минимизираната лента с инструменти"), ("All monitors", "Всички монитори"), ("#{} monitor", "Монитор {}"), + ("conn-e2ee-unavailable-tip", "Шифроването от край до край не може да бъде проверено.\nОтдалеченото устройство може все още да се настройва. Опитайте отново по-късно.\nАко това продължи, сървърът може да не е надежден.\nДа се продължи ли въпреки това?"), ].iter().cloned().collect(); } diff --git a/src/lang/ca.rs b/src/lang/ca.rs index 4cabf259b..1d02225b8 100644 --- a/src/lang/ca.rs +++ b/src/lang/ca.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Connexió amb repetidor"), ("Secure Connection", "Connexió segura"), ("Insecure Connection", "Connexió no segura"), + ("Continue", ""), ("Scale original", "Escala original"), ("Scale adaptive", "Escala adaptativa"), ("General", "General"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Mostra a la barra d’eines minimitzada"), ("All monitors", "Tots els monitors"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "No s'ha pogut verificar el xifratge d'extrem a extrem.\nEl dispositiu remot encara es pot estar configurant. Torneu-ho a provar més tard.\nSi això continua passant, el servidor pot no ser de confiança.\nVoleu continuar igualment?"), ].iter().cloned().collect(); } diff --git a/src/lang/cn.rs b/src/lang/cn.rs index bc12b3ed1..aac57d011 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "中继连接"), ("Secure Connection", "安全连接"), ("Insecure Connection", "非安全连接"), + ("Continue", ""), ("Scale original", "原始尺寸"), ("Scale adaptive", "适应窗口"), ("General", "常规"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "在最小化工具栏上显示"), ("All monitors", "所有显示器"), ("#{} monitor", "{}号显示器"), + ("conn-e2ee-unavailable-tip", "无法验证端到端加密。\n远程设备可能仍在准备中,请稍后重试。\n如果此问题持续出现,服务器可能不受信任。\n仍要继续吗?"), ].iter().cloned().collect(); } diff --git a/src/lang/cs.rs b/src/lang/cs.rs index ec789fdf7..91cf8a6c1 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Připojení předávací server"), ("Secure Connection", "Zabezpečené připojení"), ("Insecure Connection", "Nezabezpečené připojení"), + ("Continue", ""), ("Scale original", "Originální měřítko"), ("Scale adaptive", "Adaptivní měřítko"), ("General", "Obecné"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Zobrazit na minimalizovaném panelu nástrojů"), ("All monitors", "Všechny monitory"), ("#{} monitor", "Monitor č. {}"), + ("conn-e2ee-unavailable-tip", "Nepodařilo se ověřit koncové šifrování.\nVzdálené zařízení se možná stále nastavuje. Zkuste to znovu později.\nPokud se to bude opakovat, server nemusí být důvěryhodný.\nPřesto pokračovat?"), ].iter().cloned().collect(); } diff --git a/src/lang/da.rs b/src/lang/da.rs index 8c2e32193..ab057404a 100644 --- a/src/lang/da.rs +++ b/src/lang/da.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Viderestillingsforbindelse"), ("Secure Connection", "Sikker forbindelse"), ("Insecure Connection", "Usikker forbindelse"), + ("Continue", ""), ("Scale original", "Original skalering"), ("Scale adaptive", "Adaptiv skalering"), ("General", "Generelt"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Vis på den minimerede værktøjslinje"), ("All monitors", "Alle skærme"), ("#{} monitor", "Skærm {}"), + ("conn-e2ee-unavailable-tip", "End-to-end-kryptering kunne ikke bekræftes.\nDen eksterne enhed er muligvis stadig ved at blive konfigureret. Prøv igen senere.\nHvis dette fortsætter, er serveren muligvis ikke pålidelig.\nFortsæt alligevel?"), ].iter().cloned().collect(); } diff --git a/src/lang/de.rs b/src/lang/de.rs index 451bf1af7..8536ebf42 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Relay-Verbindung"), ("Secure Connection", "Sichere Verbindung"), ("Insecure Connection", "Unsichere Verbindung"), + ("Continue", ""), ("Scale original", "Keine Skalierung"), ("Scale adaptive", "Anpassbare Skalierung"), ("General", "Allgemein"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "In der minimierten Symbolleiste anzeigen"), ("All monitors", "Alle Bildschirme"), ("#{} monitor", "Bildschirm {}"), + ("conn-e2ee-unavailable-tip", "Ende-zu-Ende-Verschlüsselung konnte nicht verifiziert werden.\nDas entfernte Gerät wird möglicherweise noch eingerichtet. Versuchen Sie es später erneut.\nWenn dies weiterhin auftritt, ist der Server möglicherweise nicht vertrauenswürdig.\nTrotzdem fortfahren?"), ].iter().cloned().collect(); } diff --git a/src/lang/el.rs b/src/lang/el.rs index b1b6ff922..16865bcf6 100644 --- a/src/lang/el.rs +++ b/src/lang/el.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Αναμεταδιδόμενη σύνδεση"), ("Secure Connection", "Ασφαλής σύνδεση"), ("Insecure Connection", "Μη ασφαλής σύνδεση"), + ("Continue", ""), ("Scale original", "Κλιμάκωση πρωτότυπου"), ("Scale adaptive", "Προσαρμοσμένη κλίμακα"), ("General", "Γενικά"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Εμφάνιση στην ελαχιστοποιημένη γραμμή εργαλείων"), ("All monitors", "Όλες οι οθόνες"), ("#{} monitor", "Οθόνη {}"), + ("conn-e2ee-unavailable-tip", "Δεν ήταν δυνατή η επαλήθευση της κρυπτογράφησης από άκρο σε άκρο.\nΗ απομακρυσμένη συσκευή μπορεί να ρυθμίζεται ακόμα. Δοκιμάστε ξανά αργότερα.\nΑν αυτό συνεχιστεί, ο διακομιστής μπορεί να μην είναι αξιόπιστος.\nΣυνέχεια παρ' όλα αυτά;"), ].iter().cloned().collect(); } diff --git a/src/lang/en.rs b/src/lang/en.rs index d68361255..171a5dd44 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -279,5 +279,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("wayland-soft-keyboard-input-label", "Soft keyboard input"), ("wayland-keyboard-input-reset-choice-tip", "Reset keyboard input choice"), ("remember-wayland-keyboard-choice-tip", "Don't ask again for this remote computer"), + ("conn-e2ee-unavailable-tip", "Could not verify end-to-end encryption.\nThe remote device may still be setting up. Try again later.\nIf this keeps happening, the server may be untrusted.\nContinue anyway?") ].iter().cloned().collect(); } diff --git a/src/lang/eo.rs b/src/lang/eo.rs index 318900842..28ab2f165 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Relajsa Konekto"), ("Secure Connection", "Sekura Konekto"), ("Insecure Connection", "Nesekura Konekto"), + ("Continue", ""), ("Scale original", "Skalo originalo"), ("Scale adaptive", "Skalo adapta"), ("General", "Ĝenerala"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Montri en la minimumigita ilobreto"), ("All monitors", "Ĉiuj monitoroj"), ("#{} monitor", "Monitoro {}"), + ("conn-e2ee-unavailable-tip", "Ne eblis kontroli la fin-al-finan ĉifradon.\nLa fora aparato eble ankoraŭ estas agordata. Provu denove poste.\nSe tio daŭre okazas, la servilo eble estas nefidinda.\nĈu daŭrigi tamen?"), ].iter().cloned().collect(); } diff --git a/src/lang/es.rs b/src/lang/es.rs index f820994d7..1271e4922 100644 --- a/src/lang/es.rs +++ b/src/lang/es.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Conexión Relay"), ("Secure Connection", "Conexión segura"), ("Insecure Connection", "Conexión insegura"), + ("Continue", ""), ("Scale original", "Escala original"), ("Scale adaptive", "Escala adaptativa"), ("General", "General"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Mostrar en la barra de herramientas minimizada"), ("All monitors", "Todos los monitores"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "No se pudo verificar el cifrado de extremo a extremo.\nEs posible que el dispositivo remoto aún se esté configurando. Inténtelo de nuevo más tarde.\nSi esto sigue ocurriendo, es posible que el servidor no sea de confianza.\n¿Continuar de todos modos?"), ].iter().cloned().collect(); } diff --git a/src/lang/et.rs b/src/lang/et.rs index 2dbf0f723..39ec3cce4 100644 --- a/src/lang/et.rs +++ b/src/lang/et.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Releeühendus"), ("Secure Connection", "Turvaline ühendus"), ("Insecure Connection", "Ebaturvaline ühendus"), + ("Continue", ""), ("Scale original", "Originaalskaala"), ("Scale adaptive", "Kohanduv skaala"), ("General", "Üldine"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Näita minimeeritud tööriistaribal"), ("All monitors", "Kõik kuvarid"), ("#{} monitor", "Kuvar {}"), + ("conn-e2ee-unavailable-tip", "Otspunktkrüptimist ei saanud kontrollida.\nKaugseade võib olla veel seadistamisel. Proovige hiljem uuesti.\nKui see jätkub, ei pruugi server olla usaldusväärne.\nKas jätkata siiski?"), ].iter().cloned().collect(); } diff --git a/src/lang/eu.rs b/src/lang/eu.rs index d6211df6f..bfc497253 100644 --- a/src/lang/eu.rs +++ b/src/lang/eu.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Konexio igorria"), ("Secure Connection", "Konexio segurua"), ("Insecure Connection", "Konexio ez-segurua"), + ("Continue", ""), ("Scale original", "Jatorrizko eskala"), ("Scale adaptive", "Eskala moldagarria"), ("General", "Orokorra"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Erakutsi minimizatutako tresna-barran"), ("All monitors", "Monitore guztiak"), ("#{} monitor", "{}. monitorea"), + ("conn-e2ee-unavailable-tip", "Ezin izan da muturretik muturrerako enkriptatzea egiaztatu.\nUrruneko gailua oraindik konfiguratzen ari daiteke. Saiatu berriro geroago.\nHonek jarraitzen badu, zerbitzaria fidagaitza izan daiteke.\nHala ere jarraitu?"), ].iter().cloned().collect(); } diff --git a/src/lang/fa.rs b/src/lang/fa.rs index 2e02502e5..3b46099f0 100644 --- a/src/lang/fa.rs +++ b/src/lang/fa.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Relay ارتباط"), ("Secure Connection", "ارتباط امن"), ("Insecure Connection", "ارتباط غیر امن"), + ("Continue", ""), ("Scale original", "مقیاس اصلی"), ("Scale adaptive", "مقیاس تطبیقی"), ("General", "عمومی"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "نمایش در نوار ابزار کوچک‌شده"), ("All monitors", "همه نمایشگرها"), ("#{} monitor", "نمایشگر {}"), + ("conn-e2ee-unavailable-tip", "رمزنگاری سرتاسری قابل تأیید نیست.\nدستگاه راه دور ممکن است هنوز در حال آماده‌سازی باشد. بعداً دوباره تلاش کنید.\nاگر این مشکل ادامه داشت، سرور ممکن است نامطمئن باشد.\nبا این حال ادامه می‌دهید؟"), ].iter().cloned().collect(); } diff --git a/src/lang/fi.rs b/src/lang/fi.rs index c3e42d214..91a2f714d 100644 --- a/src/lang/fi.rs +++ b/src/lang/fi.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Välitetty yhteys"), ("Secure Connection", "Suojattu yhteys"), ("Insecure Connection", "Suojaamaton yhteys"), + ("Continue", ""), ("Scale original", "Skaalaa alkuperäinen"), ("Scale adaptive", "Mukautuva skaalaus"), ("General", "Yleiset"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Näytä pienennetyssä työkalurivissä"), ("All monitors", "Kaikki näytöt"), ("#{} monitor", "Näyttö {}"), + ("conn-e2ee-unavailable-tip", "Päästä päähän -salausta ei voitu vahvistaa.\nEtälaite voi olla vielä määritettävänä. Yritä myöhemmin uudelleen.\nJos tämä jatkuu, palvelin ei ehkä ole luotettava.\nJatketaanko silti?"), ].iter().cloned().collect(); } diff --git a/src/lang/fr.rs b/src/lang/fr.rs index 2ddb4e84d..595c0efb5 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Connexion via relais"), ("Secure Connection", "Connexion sécurisée"), ("Insecure Connection", "Connexion non sécurisée"), + ("Continue", ""), ("Scale original", "Échelle originale"), ("Scale adaptive", "Échelle adaptative"), ("General", "Général"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Afficher dans la barre d’outils réduite"), ("All monitors", "Tous les moniteurs"), ("#{} monitor", "Moniteur {}"), + ("conn-e2ee-unavailable-tip", "Impossible de vérifier le chiffrement de bout en bout.\nL'appareil distant est peut-être encore en cours de configuration. Réessayez plus tard.\nSi le problème persiste, le serveur n'est peut-être pas fiable.\nContinuer quand même ?"), ].iter().cloned().collect(); } diff --git a/src/lang/ge.rs b/src/lang/ge.rs index 52909eb35..d3c0c0b60 100644 --- a/src/lang/ge.rs +++ b/src/lang/ge.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "რეტრანსლირებული კავშირი"), ("Secure Connection", "უსაფრთხო კავშირი"), ("Insecure Connection", "არაუსაფრთხო კავშირი"), + ("Continue", ""), ("Scale original", "ორიგინალური მასშტაბი"), ("Scale adaptive", "ადაპტირებადი მასშტაბი"), ("General", "ზოგადი"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "ჩვენება ჩაკეცილ ხელსაწყოთა ზოლზე"), ("All monitors", "ყველა მონიტორი"), ("#{} monitor", "მონიტორი {}"), + ("conn-e2ee-unavailable-tip", "ბოლომდე დაშიფვრის გადამოწმება ვერ მოხერხდა.\nდისტანციური მოწყობილობა შესაძლოა ჯერ კიდევ მზადდება. სცადეთ მოგვიანებით.\nთუ ეს კვლავ გაგრძელდება, სერვერი შესაძლოა არასანდო იყოს.\nმაინც გააგრძელებთ?"), ].iter().cloned().collect(); } diff --git a/src/lang/gu.rs b/src/lang/gu.rs index 1c1d89cae..992265436 100644 --- a/src/lang/gu.rs +++ b/src/lang/gu.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "રિલે કનેક્શન"), ("Secure Connection", "સુરક્ષિત કનેક્શન"), ("Insecure Connection", "અસુરક્ષિત કનેક્શન"), + ("Continue", ""), ("Scale original", "મૂળ સ્કેલ"), ("Scale adaptive", "એડેપ્ટિવ સ્કેલ"), ("General", "સામાન્ય"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "ન્યૂનતમ કરેલા ટૂલબાર પર બતાવો"), ("All monitors", "બધા મોનિટર"), ("#{} monitor", "મોનિટર {}"), + ("conn-e2ee-unavailable-tip", "એન્ડ-ટુ-એન્ડ એન્ક્રિપ્શન ચકાસી શકાયું નથી.\nરિમોટ ઉપકરણ હજી સેટ થઈ રહ્યું હોઈ શકે છે. પછીથી ફરી પ્રયાસ કરો.\nજો આ ચાલુ રહે, તો સર્વર અવિશ્વસનીય હોઈ શકે છે.\nશું તેમ છતાં ચાલુ રાખવું?"), ].iter().cloned().collect(); } diff --git a/src/lang/he.rs b/src/lang/he.rs index 531780461..19cab0e71 100644 --- a/src/lang/he.rs +++ b/src/lang/he.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "חיבור באמצעות ממסר"), ("Secure Connection", "חיבור מאובטח"), ("Insecure Connection", "חיבור לא מאובטח"), + ("Continue", ""), ("Scale original", "קנה מידה מקורי"), ("Scale adaptive", "קנה מידה מותאם"), ("General", "כללי"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "הצגה בסרגל הכלים הממוזער"), ("All monitors", "כל המסכים"), ("#{} monitor", "מסך {}"), + ("conn-e2ee-unavailable-tip", "לא ניתן לאמת הצפנה מקצה לקצה.\nייתכן שהמכשיר המרוחק עדיין בתהליך הגדרה. נסה שוב מאוחר יותר.\nאם זה ממשיך לקרות, ייתכן שהשרת אינו מהימן.\nלהמשיך בכל זאת?"), ].iter().cloned().collect(); } diff --git a/src/lang/hi.rs b/src/lang/hi.rs index 98b259d9f..4c2c11109 100644 --- a/src/lang/hi.rs +++ b/src/lang/hi.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "रिले कनेक्शन"), ("Secure Connection", "सुरक्षित कनेक्शन"), ("Insecure Connection", "असुरक्षित कनेक्शन"), + ("Continue", ""), ("Scale original", "मूल पैमाना"), ("Scale adaptive", "अनुकूली पैमाना"), ("General", "सामान्य"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "न्यूनतम किए गए टूलबार पर दिखाएं"), ("All monitors", "सभी मॉनिटर"), ("#{} monitor", "मॉनिटर {}"), + ("conn-e2ee-unavailable-tip", "एंड-टू-एंड एन्क्रिप्शन सत्यापित नहीं किया जा सका।\nदूरस्थ डिवाइस अभी भी सेट अप हो रहा हो सकता है। बाद में फिर प्रयास करें।\nयदि यह समस्या बनी रहती है, तो सर्वर अविश्वसनीय हो सकता है।\nफिर भी जारी रखें?"), ].iter().cloned().collect(); } diff --git a/src/lang/hr.rs b/src/lang/hr.rs index 59909030a..2323d37d2 100644 --- a/src/lang/hr.rs +++ b/src/lang/hr.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Posredna veza"), ("Secure Connection", "Sigurna veza"), ("Insecure Connection", "Nesigurna veza"), + ("Continue", ""), ("Scale original", "Skaliraj izvornik"), ("Scale adaptive", "Prilagođeno skaliranje"), ("General", "Općenito"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Prikaži na minimiziranoj alatnoj traci"), ("All monitors", "Svi monitori"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "End-to-end enkripcija nije mogla biti potvrđena.\nUdaljeni uređaj se možda još postavlja. Pokušajte ponovno kasnije.\nAko se to nastavi događati, poslužitelj možda nije pouzdan.\nIpak nastaviti?"), ].iter().cloned().collect(); } diff --git a/src/lang/hu.rs b/src/lang/hu.rs index 31ba1ce05..11c6db083 100644 --- a/src/lang/hu.rs +++ b/src/lang/hu.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Kapcsolódás továbbító-kiszolgálón keresztül"), ("Secure Connection", "Biztonságos kapcsolat"), ("Insecure Connection", "Nem biztonságos kapcsolat"), + ("Continue", ""), ("Scale original", "Eredeti méretarány"), ("Scale adaptive", "Adaptív méretarány"), ("General", "Általános"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Megjelenítés a kis méretű eszköztáron"), ("All monitors", "Minden monitor"), ("#{} monitor", "{}. monitor"), + ("conn-e2ee-unavailable-tip", "A végpontok közötti titkosítás nem volt ellenőrizhető.\nA távoli eszköz talán még beállítás alatt áll. Próbálja újra később.\nHa ez továbbra is előfordul, a szerver lehet, hogy nem megbízható.\nFolytatja így is?"), ].iter().cloned().collect(); } diff --git a/src/lang/id.rs b/src/lang/id.rs index c9d2530e2..2dfb30b9b 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Koneksi Relay"), ("Secure Connection", "Koneksi aman"), ("Insecure Connection", "Koneksi Tidak Aman"), + ("Continue", ""), ("Scale original", "Skala asli"), ("Scale adaptive", "Skala adaptif"), ("General", "Umum"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Tampilkan di bilah alat yang diperkecil"), ("All monitors", "Semua monitor"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "Tidak dapat memverifikasi enkripsi ujung ke ujung.\nPerangkat jarak jauh mungkin masih disiapkan. Coba lagi nanti.\nJika ini terus terjadi, server mungkin tidak tepercaya.\nTetap lanjutkan?"), ].iter().cloned().collect(); } diff --git a/src/lang/it.rs b/src/lang/it.rs index f5f9c88f5..c93ab8019 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Connessione relay"), ("Secure Connection", "Connessione sicura"), ("Insecure Connection", "Connessione non sicura"), + ("Continue", ""), ("Scale original", "Scala originale"), ("Scale adaptive", "Scala adattiva"), ("General", "Generale"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Visualizza nella barra strumenti ridotta a icona"), ("All monitors", "Tutti gli schermi"), ("#{} monitor", "Schermo {}"), + ("conn-e2ee-unavailable-tip", "Impossibile verificare la crittografia end-to-end.\nIl dispositivo remoto potrebbe essere ancora in configurazione. Riprova più tardi.\nSe il problema persiste, il server potrebbe non essere attendibile.\nContinuare comunque?"), ].iter().cloned().collect(); } diff --git a/src/lang/ja.rs b/src/lang/ja.rs index 187fb2b51..4385f9b26 100644 --- a/src/lang/ja.rs +++ b/src/lang/ja.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "中継接続"), ("Secure Connection", "安全な接続"), ("Insecure Connection", "安全でない接続"), + ("Continue", ""), ("Scale original", "オリジナルのサイズ"), ("Scale adaptive", "ウィンドウに合わせる"), ("General", "一般"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "最小化したツールバーに表示"), ("All monitors", "すべてのディスプレイ"), ("#{} monitor", "ディスプレイ {}"), + ("conn-e2ee-unavailable-tip", "エンドツーエンド暗号化を確認できませんでした。\nリモートデバイスはまだ準備中の可能性があります。後でもう一度お試しください。\nこの問題が続く場合、サーバーが信頼できない可能性があります。\nそれでも続行しますか?"), ].iter().cloned().collect(); } diff --git a/src/lang/ko.rs b/src/lang/ko.rs index 60560cb02..921406ed5 100644 --- a/src/lang/ko.rs +++ b/src/lang/ko.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "릴레이 연결"), ("Secure Connection", "보안 연결"), ("Insecure Connection", "보안되지 않은 연결"), + ("Continue", ""), ("Scale original", "원본 크기 조정"), ("Scale adaptive", "크기 조정 가능"), ("General", "일반"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "최소화된 도구 모음에 표시"), ("All monitors", "모든 모니터"), ("#{} monitor", "#{} 모니터"), + ("conn-e2ee-unavailable-tip", "종단 간 암호화를 확인할 수 없습니다.\n원격 장치가 아직 설정 중일 수 있습니다. 나중에 다시 시도하세요.\n이 문제가 계속되면 서버를 신뢰할 수 없을 수 있습니다.\n그래도 계속하시겠습니까?"), ].iter().cloned().collect(); } diff --git a/src/lang/kz.rs b/src/lang/kz.rs index 0f1dfa9ba..1c47ebb62 100644 --- a/src/lang/kz.rs +++ b/src/lang/kz.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Релай Қосылым"), ("Secure Connection", "Қауіпсіз Қосылым"), ("Insecure Connection", "Қатерлі Қосылым"), + ("Continue", ""), ("Scale original", "Scale original"), ("Scale adaptive", "Scale adaptive"), ("General", "Жалпы"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Кішірейтілген құралдар тақтасында көрсету"), ("All monitors", "Барлық мониторлар"), ("#{} monitor", "Монитор {}"), + ("conn-e2ee-unavailable-tip", "Ұштан-ұшқа шифрлауды тексеру мүмкін болмады.\nҚашықтағы құрылғы әлі бапталып жатқан болуы мүмкін. Кейінірек қайталап көріңіз.\nЕгер бұл қайталана берсе, сервер сенімсіз болуы мүмкін.\nСонда да жалғастыру керек пе?"), ].iter().cloned().collect(); } diff --git a/src/lang/lt.rs b/src/lang/lt.rs index 8065ab00f..a0e9dab38 100644 --- a/src/lang/lt.rs +++ b/src/lang/lt.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Tarpinė jungtis"), ("Secure Connection", "Saugus ryšys"), ("Insecure Connection", "Nesaugus ryšys"), + ("Continue", ""), ("Scale original", "Pakeisti originalų mastelį"), ("Scale adaptive", "Pritaikomas mastelis"), ("General", "Bendra"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Rodyti sumažintoje įrankių juostoje"), ("All monitors", "Visi monitoriai"), ("#{} monitor", "Monitorius {}"), + ("conn-e2ee-unavailable-tip", "Nepavyko patikrinti galinio šifravimo.\nNuotolinis įrenginys galbūt vis dar nustatomas. Bandykite dar kartą vėliau.\nJei tai kartojasi, serveris gali būti nepatikimas.\nVis tiek tęsti?"), ].iter().cloned().collect(); } diff --git a/src/lang/lv.rs b/src/lang/lv.rs index 23756b2c8..308e2fb13 100644 --- a/src/lang/lv.rs +++ b/src/lang/lv.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Releja savienojums"), ("Secure Connection", "Drošs savienojums"), ("Insecure Connection", "Nedrošs savienojums"), + ("Continue", ""), ("Scale original", "Mērogs oriģināls"), ("Scale adaptive", "Mērogs adaptīvs"), ("General", "Vispārīgi"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Rādīt minimizētajā rīkjoslā"), ("All monitors", "Visi monitori"), ("#{} monitor", "Monitors {}"), + ("conn-e2ee-unavailable-tip", "Neizdevās pārbaudīt pilnīgu šifrēšanu.\nAttālā ierīce, iespējams, vēl tiek iestatīta. Mēģiniet vēlreiz vēlāk.\nJa tas turpinās, serveris var nebūt uzticams.\nVai tomēr turpināt?"), ].iter().cloned().collect(); } diff --git a/src/lang/ml.rs b/src/lang/ml.rs index bce3fc9c5..8c69c7b44 100644 --- a/src/lang/ml.rs +++ b/src/lang/ml.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "റിലേ കണക്ഷൻ"), ("Secure Connection", "സുരക്ഷിതമായ കണക്ഷൻ"), ("Insecure Connection", "സുരക്ഷിതമല്ലാത്ത കണക്ഷൻ"), + ("Continue", ""), ("Scale original", "ഒറിജിനൽ വലിപ്പം"), ("Scale adaptive", "അഡാപ്റ്റീവ് വലിപ്പം"), ("General", "പൊതുവായവ"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "ചെറുതാക്കിയ ടൂൾബാറിൽ കാണിക്കുക"), ("All monitors", "എല്ലാ മോണിറ്ററുകളും"), ("#{} monitor", "മോണിറ്റർ {}"), + ("conn-e2ee-unavailable-tip", "എൻഡ്-ടു-എൻഡ് എൻക്രിപ്ഷൻ പരിശോധിക്കാൻ കഴിഞ്ഞില്ല.\nദൂരസ്ഥ ഉപകരണം ഇനിയും സജ്ജീകരണത്തിലായിരിക്കാം. പിന്നീട് വീണ്ടും ശ്രമിക്കുക.\nഇത് തുടർന്നാൽ സർവർ വിശ്വസനീയമല്ലായിരിക്കാം.\nഎങ്കിലും തുടരണമോ?"), ].iter().cloned().collect(); } diff --git a/src/lang/nb.rs b/src/lang/nb.rs index 072d1ba2f..ab6eefe49 100644 --- a/src/lang/nb.rs +++ b/src/lang/nb.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Viderekoblet tilkobling"), ("Secure Connection", "Sikker tilkobling"), ("Insecure Connection", "Usikker tilkobling"), + ("Continue", ""), ("Scale original", "Original skalering"), ("Scale adaptive", "Adaptiv skalering"), ("General", "Generelt"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Vis på den minimerte verktøylinjen"), ("All monitors", "Alle skjermer"), ("#{} monitor", "Skjerm {}"), + ("conn-e2ee-unavailable-tip", "Ende-til-ende-kryptering kunne ikke verifiseres.\nDen eksterne enheten kan fortsatt være under oppsett. Prøv igjen senere.\nHvis dette fortsetter, kan serveren være upålitelig.\nFortsette likevel?"), ].iter().cloned().collect(); } diff --git a/src/lang/nl.rs b/src/lang/nl.rs index ff4abd2f2..21288a9d8 100644 --- a/src/lang/nl.rs +++ b/src/lang/nl.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Relaisverbinding"), ("Secure Connection", "Beveiligde Verbinding"), ("Insecure Connection", "Onveilige Verbinding"), + ("Continue", ""), ("Scale original", "Oorspronkelijk formaat"), ("Scale adaptive", "Automatisch schalen"), ("General", "Algemeen"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Weergeven op de geminimaliseerde werkbalk"), ("All monitors", "Alle monitoren"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "End-to-endversleuteling kon niet worden geverifieerd.\nHet externe apparaat wordt mogelijk nog ingesteld. Probeer het later opnieuw.\nAls dit blijft gebeuren, is de server mogelijk niet vertrouwd.\nToch doorgaan?"), ].iter().cloned().collect(); } diff --git a/src/lang/pl.rs b/src/lang/pl.rs index 26c51bbb8..9de6cfd92 100644 --- a/src/lang/pl.rs +++ b/src/lang/pl.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Połączenie przez bramkę"), ("Secure Connection", "Połączenie szyfrowane"), ("Insecure Connection", "Połączenie nieszyfrowane"), + ("Continue", ""), ("Scale original", "Skalowanie oryginalne"), ("Scale adaptive", "Dopasuj do wyświetlacza"), ("General", "Ogólne"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Pokaż na zminimalizowanym pasku narzędzi"), ("All monitors", "Wszystkie ekrany"), ("#{} monitor", "Ekran {}"), + ("conn-e2ee-unavailable-tip", "Nie można zweryfikować szyfrowania end-to-end.\nUrządzenie zdalne może nadal się konfigurować. Spróbuj ponownie później.\nJeśli problem będzie się powtarzał, serwer może być niezaufany.\nKontynuować mimo to?"), ].iter().cloned().collect(); } diff --git a/src/lang/pt_PT.rs b/src/lang/pt_PT.rs index b5f117be8..fabe37424 100644 --- a/src/lang/pt_PT.rs +++ b/src/lang/pt_PT.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Conexão de relé"), ("Secure Connection", "Conexão segura"), ("Insecure Connection", "Conexão insegura"), + ("Continue", ""), ("Scale original", "Escala original"), ("Scale adaptive", "Escala adaptável"), ("General", "Geral"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Mostrar na barra de ferramentas minimizada"), ("All monitors", "Todos os monitores"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "Não foi possível verificar a encriptação de ponta a ponta.\nO dispositivo remoto ainda pode estar a ser configurado. Tente novamente mais tarde.\nSe isto continuar a acontecer, o servidor pode não ser fidedigno.\nContinuar mesmo assim?"), ].iter().cloned().collect(); } diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index 5e93d2cc8..1b0e90a47 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Conexão via Relay"), ("Secure Connection", "Conexão Segura"), ("Insecure Connection", "Conexão Insegura"), + ("Continue", ""), ("Scale original", "Escala original"), ("Scale adaptive", "Escala adaptada"), ("General", "Geral"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Mostrar na barra de ferramentas minimizada"), ("All monitors", "Todas as telas"), ("#{} monitor", "Tela {}"), + ("conn-e2ee-unavailable-tip", "Não foi possível verificar a criptografia de ponta a ponta.\nO dispositivo remoto ainda pode estar sendo configurado. Tente novamente mais tarde.\nSe isso continuar acontecendo, o servidor pode não ser confiável.\nContinuar mesmo assim?"), ].iter().cloned().collect(); } diff --git a/src/lang/ro.rs b/src/lang/ro.rs index 41d2e42c5..a828db9c8 100644 --- a/src/lang/ro.rs +++ b/src/lang/ro.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Conexiune prin retransmisie"), ("Secure Connection", "Conexiune securizată"), ("Insecure Connection", "Conexiune nesecurizată"), + ("Continue", ""), ("Scale original", "Dimensiune originală"), ("Scale adaptive", "Scalare automată"), ("General", "General"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Afișează în bara de instrumente minimizată"), ("All monitors", "Toate monitoarele"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "Criptarea end-to-end nu a putut fi verificată.\nDispozitivul la distanță poate fi încă în curs de configurare. Încercați din nou mai târziu.\nDacă acest lucru continuă, serverul poate să nu fie de încredere.\nContinuați oricum?"), ].iter().cloned().collect(); } diff --git a/src/lang/ru.rs b/src/lang/ru.rs index 2f80a8d44..1fa53a6a4 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Ретранслируемое подключение"), ("Secure Connection", "Безопасное подключение"), ("Insecure Connection", "Небезопасное подключение"), + ("Continue", ""), ("Scale original", "Оригинальный масштаб"), ("Scale adaptive", "Адаптивный масштаб"), ("General", "Общие"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Показывать на свёрнутой панели инструментов"), ("All monitors", "Все мониторы"), ("#{} monitor", "Монитор {}"), + ("conn-e2ee-unavailable-tip", "Не удалось проверить сквозное шифрование.\nУдаленное устройство, возможно, еще настраивается. Повторите попытку позже.\nЕсли это повторяется, сервер может быть ненадежным.\nВсе равно продолжить?"), ].iter().cloned().collect(); } diff --git a/src/lang/sc.rs b/src/lang/sc.rs index 1bf065fe7..43829f69b 100644 --- a/src/lang/sc.rs +++ b/src/lang/sc.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Connessione tramudada (relay)"), ("Secure Connection", "Connessione segura"), ("Insecure Connection", "Connessione non segura"), + ("Continue", ""), ("Scale original", "Iscala originale"), ("Scale adaptive", "Iscala adativa"), ("General", "Generale"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Mustra in sa barra de aina minimizada"), ("All monitors", "Totu sos ischermos"), ("#{} monitor", "Ischermu {}"), + ("conn-e2ee-unavailable-tip", "No est istadu possìbile verificare sa tzifratzione de punta a punta.\nSu dispositivu remotu podet èssere ancora in fase de configuratzione. Torra a proare prus a tardu.\nSi custu sighit a acontèssere, su server podet non èssere fidadu.\nBoles sighire comente siat?"), ].iter().cloned().collect(); } diff --git a/src/lang/sk.rs b/src/lang/sk.rs index 86b1367bd..d2700a52e 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Reléové pripojenie"), ("Secure Connection", "Zabezpečené pripojenie"), ("Insecure Connection", "Nezabezpečené pripojenie"), + ("Continue", ""), ("Scale original", "Pôvodná mierka"), ("Scale adaptive", "Prispôsobivá mierka"), ("General", "Všeobecné"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Zobraziť na minimalizovanom paneli nástrojov"), ("All monitors", "Všetky monitory"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "Nepodarilo sa overiť koncové šifrovanie.\nVzdialené zariadenie sa možno stále nastavuje. Skúste to znova neskôr.\nAk sa to bude opakovať, server nemusí byť dôveryhodný.\nNapriek tomu pokračovať?"), ].iter().cloned().collect(); } diff --git a/src/lang/sl.rs b/src/lang/sl.rs index 8f0f50f4d..a9e4b6b13 100755 --- a/src/lang/sl.rs +++ b/src/lang/sl.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Posredovana povezava"), ("Secure Connection", "Zavarovana povezava"), ("Insecure Connection", "Nezavarovana povezava"), + ("Continue", ""), ("Scale original", "Originalna velikost"), ("Scale adaptive", "Prilagojena velikost"), ("General", "Splošno"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Pokaži v pomanjšani orodni vrstici"), ("All monitors", "Vsi zasloni"), ("#{} monitor", "Zaslon {}"), + ("conn-e2ee-unavailable-tip", "Šifriranja od konca do konca ni bilo mogoče preveriti.\nOddaljena naprava se morda še nastavlja. Poskusite znova pozneje.\nČe se to še naprej dogaja, strežnik morda ni zaupanja vreden.\nVseeno nadaljevati?"), ].iter().cloned().collect(); } diff --git a/src/lang/sq.rs b/src/lang/sq.rs index 166ba61e7..f8b30bbc3 100644 --- a/src/lang/sq.rs +++ b/src/lang/sq.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Lidhja rele"), ("Secure Connection", "Lidhje e sigurt"), ("Insecure Connection", "Lidhje e pasigurt"), + ("Continue", ""), ("Scale original", "Shkalla origjinale"), ("Scale adaptive", " E përsjhtatshme në shkallë"), ("General", "Gjeneral"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Shfaq te shiriti i minimizuar i veglave"), ("All monitors", "Të gjithë monitorët"), ("#{} monitor", "Monitori {}"), + ("conn-e2ee-unavailable-tip", "Enkriptimi nga skaji në skaj nuk mund të verifikohej.\nPajisja e largët mund të jetë ende duke u konfiguruar. Provoni përsëri më vonë.\nNëse kjo vazhdon të ndodhë, serveri mund të mos jetë i besueshëm.\nTë vazhdohet gjithsesi?"), ].iter().cloned().collect(); } diff --git a/src/lang/sr.rs b/src/lang/sr.rs index 56db4308d..ecbaed7ac 100644 --- a/src/lang/sr.rs +++ b/src/lang/sr.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Posredna konekcija"), ("Secure Connection", "Bezbedna konekcija"), ("Insecure Connection", "Nebezbedna konekcija"), + ("Continue", ""), ("Scale original", "Skaliraj original"), ("Scale adaptive", "Adaptivno skaliranje"), ("General", "Uopšteno"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Прикажи на умањеној траци са алаткама"), ("All monitors", "Svi monitori"), ("#{} monitor", "Monitor {}"), + ("conn-e2ee-unavailable-tip", "Није могуће проверити енд-то-енд шифровање.\nУдаљени уређај се можда још подешава. Покушајте поново касније.\nАко се ово настави, сервер можда није поуздан.\nНаставити свеједно?"), ].iter().cloned().collect(); } diff --git a/src/lang/sv.rs b/src/lang/sv.rs index 4b7cacd80..42d9c5f1e 100644 --- a/src/lang/sv.rs +++ b/src/lang/sv.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Relayanslutning"), ("Secure Connection", "Säker anslutning"), ("Insecure Connection", "Osäker anslutning"), + ("Continue", ""), ("Scale original", "Skala orginal"), ("Scale adaptive", "Skala adaptivt"), ("General", "Generellt"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Visa i det minimerade verktygsfältet"), ("All monitors", "Alla skärmar"), ("#{} monitor", "Skärm {}"), + ("conn-e2ee-unavailable-tip", "End-to-end-kryptering kunde inte verifieras.\nFjärrenheten kan fortfarande konfigureras. Försök igen senare.\nOm detta fortsätter kan servern vara opålitlig.\nFortsätta ändå?"), ].iter().cloned().collect(); } diff --git a/src/lang/ta.rs b/src/lang/ta.rs index ba2a1dcb6..16a5cd1a1 100644 --- a/src/lang/ta.rs +++ b/src/lang/ta.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "ரிலே இணைப்பு"), ("Secure Connection", "பாதுகாப்பான இணைப்பு"), ("Insecure Connection", "பாதுகாப்பற்ற இணைப்பு"), + ("Continue", ""), ("Scale original", "அசல் அளவு"), ("Scale adaptive", "தகவமைப்பு அளவு"), ("General", "பொது"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "சிறிதாக்கப்பட்ட கருவிப்பட்டையில் காட்டு"), ("All monitors", "அனைத்து மானிட்டர்களும்"), ("#{} monitor", "மானிட்டர் {}"), + ("conn-e2ee-unavailable-tip", "முடிவு-முதல்-முடிவு குறியாக்கத்தை சரிபார்க்க முடியவில்லை.\nதொலை சாதனம் இன்னும் அமைக்கப்பட்டுக் கொண்டிருக்கலாம். பின்னர் மீண்டும் முயற்சிக்கவும்.\nஇது தொடர்ந்து நடந்தால், சேவையகம் நம்பகமற்றதாக இருக்கலாம்.\nஎப்படியும் தொடரவா?"), ].iter().cloned().collect(); } diff --git a/src/lang/template.rs b/src/lang/template.rs index 2a80bbc4d..faabf0876 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", ""), ("Secure Connection", ""), ("Insecure Connection", ""), + ("Continue", ""), ("Scale original", ""), ("Scale adaptive", ""), ("General", ""), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", ""), ("All monitors", ""), ("#{} monitor", ""), + ("conn-e2ee-unavailable-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/th.rs b/src/lang/th.rs index 251e4d65b..a905ec863 100644 --- a/src/lang/th.rs +++ b/src/lang/th.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "การเชื่อมต่อแบบ Relay "), ("Secure Connection", "การเชื่อมต่อที่ปลอดภัย"), ("Insecure Connection", "การเชื่อมต่อที่ไม่ปลอดภัย"), + ("Continue", ""), ("Scale original", "ขนาดเดิม"), ("Scale adaptive", "ขนาดยืดหยุ่น"), ("General", "ทั่วไป"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "แสดงบนแถบเครื่องมือที่ย่อเล็กสุด"), ("All monitors", "จอภาพทั้งหมด"), ("#{} monitor", "จอภาพ {}"), + ("conn-e2ee-unavailable-tip", "ไม่สามารถยืนยันการเข้ารหัสแบบต้นทางถึงปลายทางได้\nอุปกรณ์ระยะไกลอาจยังอยู่ระหว่างการตั้งค่า โปรดลองอีกครั้งภายหลัง\nหากปัญหานี้ยังเกิดขึ้นต่อไป เซิร์ฟเวอร์อาจไม่น่าเชื่อถือ\nต้องการดำเนินการต่อหรือไม่?"), ].iter().cloned().collect(); } diff --git a/src/lang/tr.rs b/src/lang/tr.rs index 831ae76f0..58875d619 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Aktarmalı Bağlantı"), ("Secure Connection", "Güvenli Bağlantı"), ("Insecure Connection", "Güvenli Olmayan Bağlantı"), + ("Continue", ""), ("Scale original", "Orijinal ölçekte"), ("Scale adaptive", "Uyarlanabilir ölçekte"), ("General", "Genel"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Simge durumuna küçültülmüş araç çubuğunda göster"), ("All monitors", "Tüm monitörler"), ("#{} monitor", "Monitör {}"), + ("conn-e2ee-unavailable-tip", "Uçtan uca şifreleme doğrulanamadı.\nUzak cihaz hâlâ kuruluyor olabilir. Daha sonra tekrar deneyin.\nBu sorun devam ederse sunucu güvenilir olmayabilir.\nYine de devam edilsin mi?"), ].iter().cloned().collect(); } diff --git a/src/lang/tw.rs b/src/lang/tw.rs index 31a2e4f6a..2771c21ce 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "中繼連線"), ("Secure Connection", "安全連線"), ("Insecure Connection", "非安全連線"), + ("Continue", ""), ("Scale original", "原始尺寸"), ("Scale adaptive", "適應視窗"), ("General", "一般"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "在最小化工具列上顯示"), ("All monitors", "所有顯示器"), ("#{} monitor", "{}號顯示器"), + ("conn-e2ee-unavailable-tip", "無法驗證端對端加密。\n遠端裝置可能仍在準備中,請稍後重試。\n如果此問題持續發生,伺服器可能不受信任。\n仍要繼續嗎?"), ].iter().cloned().collect(); } diff --git a/src/lang/uk.rs b/src/lang/uk.rs index e1d15ecd0..5996eedfb 100644 --- a/src/lang/uk.rs +++ b/src/lang/uk.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Ретрансльоване підключення"), ("Secure Connection", "Безпечне підключення"), ("Insecure Connection", "Небезпечне підключення"), + ("Continue", ""), ("Scale original", "Оригінальний масштаб"), ("Scale adaptive", "Адаптивний масштаб"), ("General", "Загальні"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Показувати на згорнутій панелі інструментів"), ("All monitors", "Усі монітори"), ("#{} monitor", "Монітор {}"), + ("conn-e2ee-unavailable-tip", "Не вдалося перевірити наскрізне шифрування.\nВіддалений пристрій, можливо, ще налаштовується. Спробуйте пізніше.\nЯкщо це повторюється, сервер може бути ненадійним.\nПродовжити все одно?"), ].iter().cloned().collect(); } diff --git a/src/lang/vi.rs b/src/lang/vi.rs index ea5f219a7..48b567da7 100644 --- a/src/lang/vi.rs +++ b/src/lang/vi.rs @@ -332,6 +332,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Relay Connection", "Kết nối chuyển tiếp"), ("Secure Connection", "Kết nối bảo mật"), ("Insecure Connection", "Kết nối không bảo mật"), + ("Continue", ""), ("Scale original", "Tỷ lệ gốc"), ("Scale adaptive", "Tỷ lệ thích ứng"), ("General", "Chung"), @@ -763,5 +764,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Show on the minimized toolbar", "Hiển thị trên thanh công cụ thu nhỏ"), ("All monitors", "Tất cả màn hình"), ("#{} monitor", "Màn hình {}"), + ("conn-e2ee-unavailable-tip", "Không thể xác minh mã hóa đầu cuối.\nThiết bị từ xa có thể vẫn đang được thiết lập. Hãy thử lại sau.\nNếu điều này tiếp tục xảy ra, máy chủ có thể không đáng tin cậy.\nVẫn tiếp tục?"), ].iter().cloned().collect(); } diff --git a/src/port_forward.rs b/src/port_forward.rs index 9c0130951..8b190fb1e 100644 --- a/src/port_forward.rs +++ b/src/port_forward.rs @@ -69,7 +69,8 @@ pub async fn listen( let id = id.clone(); let password = password.clone(); let mut forward = Framed::new(forward, BytesCodec::new()); - match connect_and_login(&id, &password, &mut ui_receiver, interface.clone(), &mut forward, key, token, is_rdp).await { + let mut close_port_forward = false; + match connect_and_login(&id, &password, &mut ui_receiver, interface.clone(), &mut forward, key, token, is_rdp, &mut close_port_forward).await { Ok(Some(stream)) => { let interface = interface.clone(); tokio::spawn(async move { @@ -79,6 +80,9 @@ pub async fn listen( log::info!("connection from {:?} closed", addr); }); } + _ if close_port_forward => { + break; + } Err(err) => { interface.on_establish_connection_error(err.to_string()); } @@ -111,6 +115,7 @@ async fn connect_and_login( key: &str, token: &str, is_rdp: bool, + close_port_forward: &mut bool, ) -> ResultType> { let conn_type = if is_rdp { ConnType::RDP @@ -120,6 +125,12 @@ async fn connect_and_login( let ((mut stream, direct, _pk, _kcp, _stream_type), (feedback, rendezvous_server)) = Client::start(id, key, token, conn_type, interface.clone()).await?; interface.update_direct(Some(direct)); + if !stream.is_secured() && !crate::common::is_direct_ip_access(id) { + if !confirm_insecure_connection(&interface, ui_receiver).await { + *close_port_forward = true; + return Ok(None); + } + } let mut buffer = Vec::new(); let mut received = false; diff --git a/src/server/connection.rs b/src/server/connection.rs index 40a1606ef..bdf9cba8b 100644 --- a/src/server/connection.rs +++ b/src/server/connection.rs @@ -2587,9 +2587,7 @@ impl Connection { } } - if !hbb_common::is_ip_str(&lr.username) - && !hbb_common::is_domain_port_str(&lr.username) - && lr.username != Config::get_id() + if !crate::common::is_direct_ip_access(&lr.username) && lr.username != Config::get_id() { self.send_login_error(crate::client::LOGIN_MSG_OFFLINE) .await; diff --git a/src/ui/common.tis b/src/ui/common.tis index 240799059..a1a0b8fac 100644 --- a/src/ui/common.tis +++ b/src/ui/common.tis @@ -296,6 +296,15 @@ function msgbox(type, title, content, link="", callback=null, height=180, width= else msgbox("connecting", "Connecting...", "Logging in..."); } }; + } else if (type.indexOf("insecure-connection") >= 0) { + callback = function (res) { + if (!res) { + handler.continue_insecure_connection(false); + view.close(); + return; + } + handler.continue_insecure_connection(true); + }; } else if (type.indexOf("custom") < 0 && !is_port_forward && !callback) { callback = function() { view.close(); } } else if (type == 'wait-remote-accept-nook') { @@ -479,4 +488,4 @@ class MultipleSessionComponent extends Reactor.Component { ; } -} \ No newline at end of file +} diff --git a/src/ui/msgbox.tis b/src/ui/msgbox.tis index 6e6b6a62f..58547ce58 100644 --- a/src/ui/msgbox.tis +++ b/src/ui/msgbox.tis @@ -152,6 +152,7 @@ class MsgboxComponent: Reactor.Component { var hasOk = this.type != "connecting" && this.type != "success" && this.type.indexOf("nook") < 0; var hasLink = this.link != ""; var hasClose = this.type.indexOf("hasclose") >= 0; + var isInsecureConnection = this.type.indexOf("insecure-connection") >= 0; var show_progress = this.type == "connecting"; var me = this; self.timer(0, msgboxTimerFunc); @@ -176,11 +177,12 @@ class MsgboxComponent: Reactor.Component {
+ {isInsecureConnection && hasOk ? : ""} {hasCancel || this.hasRetry ? : ""} {this.hasSkip() ? : ""} - {hasOk || this.hasRetry ? : ""} + {!isInsecureConnection && (hasOk || this.hasRetry) ? : ""} {hasLink ? : ""} - {hasClose ? : ""} + {hasClose ? (isInsecureConnection ? : ) : ""} {this.getScreenshotButtons()}
@@ -193,6 +195,10 @@ class MsgboxComponent: Reactor.Component { } function submit() { + if (this.type.indexOf("insecure-connection") >= 0) { + this.cancel(); + return; + } var submit_btn = this.$(button#submit); if (submit_btn) { if (submit_btn.state.disabled) return; @@ -376,7 +382,11 @@ class MsgboxComponent: Reactor.Component { var el = me.$(.outline-focus); if (el) view.focus = el; else { - el = me.$(#submit); + if (me.type.indexOf("insecure-connection") >= 0) { + el = me.$(#cancel); + } else { + el = me.$(#submit); + } if (el) { view.focus = el; } diff --git a/src/ui/remote.rs b/src/ui/remote.rs index 8b6f01ae0..1d5ceb139 100644 --- a/src/ui/remote.rs +++ b/src/ui/remote.rs @@ -513,6 +513,7 @@ impl sciter::EventHandler for SciterSession { fn is_rdp(); fn login(String, String, String, bool); fn send2fa(String, bool); + fn continue_insecure_connection(bool); fn get_enable_trusted_devices(); fn new_rdp(); fn send_mouse(i32, i32, i32, bool, bool, bool, bool); diff --git a/src/ui_session_interface.rs b/src/ui_session_interface.rs index 59f81562d..bf2e04c6b 100644 --- a/src/ui_session_interface.rs +++ b/src/ui_session_interface.rs @@ -1408,6 +1408,15 @@ impl Session { self.send(Data::Close); } + pub fn continue_insecure_connection(&self, continue_insecure: bool) { + let data = if continue_insecure { + Data::ContinueInsecureConnection + } else { + Data::RejectInsecureConnection + }; + self.send(data); + } + fn try_auto_start_job_str(is_reconnected: bool, job_str: &str) -> Option { if is_reconnected { let job_str = job_str.trim();