This commit is contained in:
rustdesk 2021-03-22 18:21:30 +08:00
parent 8866360e59
commit 9827d1cd8c
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ pub const DEFAULT_PORT: &'static str = "21117";
#[tokio::main(basic_scheduler)]
pub async fn start(port: &str, license: &str, stop: Arc<Mutex<bool>>) -> ResultType<()> {
let addr = format!("0.0.0.0:{}", port);
log::info!("Listening on {}", addr);
log::info!("Listening on tcp {}", addr);
let mut timer = interval(Duration::from_millis(300));
let mut listener = new_listener(addr, false).await?;
loop {

View File

@ -163,6 +163,8 @@ impl RendezvousServer {
license: &str,
stop: Arc<Mutex<bool>>,
) -> ResultType<()> {
log::info!("Listening on tcp/udp {}", addr);
log::info!("Listening on tcp {}, extra port for NAT test", addr2);
let mut socket = FramedSocket::new(addr).await?;
let (tx, mut rx) = mpsc::unbounded_channel::<(RendezvousMessage, SocketAddr)>();
let version = hbb_common::get_version_from_url(&software_url);