remove unnessarey dns call

This commit is contained in:
rustdesk
2021-05-23 00:14:00 +08:00
parent b7ab1405ee
commit bdfb59dd1a
3 changed files with 12 additions and 4 deletions

View File

@@ -93,9 +93,6 @@ pub enum Data {
#[tokio::main(basic_scheduler)]
pub async fn start(postfix: &str) -> ResultType<()> {
if postfix.is_empty() {
crate::common::test_nat_type();
}
let mut incoming = new_listener(postfix).await?;
loop {
if let Some(result) = incoming.next().await {