aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main.rs
diff options
context:
space:
mode:
authoropen-trade <[email protected]>2020-09-27 22:20:42 +0800
committeropen-trade <[email protected]>2020-09-27 22:20:42 +0800
commit1acec93fdbd43d54a6faa20e2b4e5ec761eb2d1c (patch)
treee6c73b4aee699a29386d705a31b50822c7356ff8 /src/main.rs
parentb34049b1bbef3bd9e9ecddbf1be204feea4f7eff (diff)
downloadrustdesk-server-1acec93fdbd43d54a6faa20e2b4e5ec761eb2d1c.tar.gz
rustdesk-server-1acec93fdbd43d54a6faa20e2b4e5ec761eb2d1c.zip
port2
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 7982a1c..1c81632 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -57,11 +57,14 @@ async fn main() -> ResultType<()> {
.collect();
let addr = format!("0.0.0.0:{}", port);
log::info!("Listening on {}", addr);
+ let addr2 = format!("0.0.0.0:{}", port.parse::<i32>().unwrap_or(0) - 1);
+ log::info!("Listening on {}, extra port for NAT test", addr2);
log::info!("relay-server={}", relay_server);
log::info!("serial={}", serial);
log::info!("rendezvous-servers={:?}", rendezvous_servers);
RendezvousServer::start(
&addr,
+ &addr2,
relay_server,
serial,
rendezvous_servers,