more set_nodelay

This commit is contained in:
rustdesk 2022-01-24 01:50:22 +08:00
parent bf578e768b
commit 98aa410683

View File

@ -482,6 +482,7 @@ async fn direct_server(server: ServerPtr) -> ResultType<()> {
if Config::get_option("direct-server").is_empty() {
continue;
}
stream.set_nodelay(true).ok();
log::info!("direct access from {}", addr);
let local_addr = stream.local_addr()?;
let server = server.clone();