An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
test nat type for outgoing-only client (#11962)
21pagese0f35b904652
diff --git a/src/flutter_ffi.rs b/src/flutter_ffi.rsindex 827faf74e..d3665d7cc 100644--- a/src/flutter_ffi.rs+++ b/src/flutter_ffi.rs@@ -64,6 +64,7 @@ fn initialize(app_dir: &str, custom_client_config: &str) {{use hbb_common::env_logger::*;init_from_env(Env::default().filter_or(DEFAULT_FILTER_ENV, "debug"));+ crate::common::test_nat_type();}#[cfg(not(any(target_os = "android", target_os = "ios")))]{diff --git a/src/rendezvous_mediator.rs b/src/rendezvous_mediator.rsindex 99e6c3b8f..09e3b4fb9 100644--- a/src/rendezvous_mediator.rs+++ b/src/rendezvous_mediator.rs@@ -57,6 +57,7 @@ impl RendezvousMediator {}pub async fn start_all() {+ crate::test_nat_type();if config::is_outgoing_only() {loop {sleep(1.).await;@@ -69,7 +70,6 @@ impl RendezvousMediator {}check_zombie();let server = new_server();- crate::test_nat_type();if config::option2bool("stop-service", &Config::get_option("stop-service")) {crate::test_rendezvous_server();}