mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-03-11 22:54:41 +08:00
fix command line buffer and test addr
This commit is contained in:
@@ -379,7 +379,7 @@ async fn handle_connection(
|
||||
let limiter = limiter.clone();
|
||||
tokio::spawn(async move {
|
||||
let mut stream = stream;
|
||||
let mut buffer = [0; 64];
|
||||
let mut buffer = [0; 1024];
|
||||
if let Ok(Ok(n)) = timeout(1000, stream.read(&mut buffer[..])).await {
|
||||
if let Ok(data) = std::str::from_utf8(&buffer[..n]) {
|
||||
let res = check_cmd(data, limiter).await;
|
||||
|
||||
Reference in New Issue
Block a user