mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-11 04:33:08 +08:00
test nat type for outgoing-only client
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
ec0456e606
commit
2a13c0200f
@ -57,6 +57,7 @@ impl RendezvousMediator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn start_all() {
|
pub async fn start_all() {
|
||||||
|
crate::test_nat_type();
|
||||||
if config::is_outgoing_only() {
|
if config::is_outgoing_only() {
|
||||||
loop {
|
loop {
|
||||||
sleep(1.).await;
|
sleep(1.).await;
|
||||||
@ -69,7 +70,6 @@ impl RendezvousMediator {
|
|||||||
}
|
}
|
||||||
check_zombie();
|
check_zombie();
|
||||||
let server = new_server();
|
let server = new_server();
|
||||||
crate::test_nat_type();
|
|
||||||
if config::option2bool("stop-service", &Config::get_option("stop-service")) {
|
if config::option2bool("stop-service", &Config::get_option("stop-service")) {
|
||||||
crate::test_rendezvous_server();
|
crate::test_rendezvous_server();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user