aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/relay_server.rs
diff options
context:
space:
mode:
authorrustdesk <[email protected]>2023-03-16 00:53:58 +0800
committerrustdesk <[email protected]>2023-03-16 00:53:58 +0800
commit675bf3c1f53f6884b03cf4dc2905e89a6815ec73 (patch)
treefef301043eb32d3ae65cc696a896b823479a8699 /src/relay_server.rs
parentdc81956d429f55000e4791bf15a41e213bb87fca (diff)
downloadrustdesk-server-675bf3c1f53f6884b03cf4dc2905e89a6815ec73.tar.gz
rustdesk-server-675bf3c1f53f6884b03cf4dc2905e89a6815ec73.zip
fix command line buffer and test addr
Diffstat (limited to 'src/relay_server.rs')
-rw-r--r--src/relay_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/relay_server.rs b/src/relay_server.rs
index 5e17a56..b7e2a76 100644
--- a/src/relay_server.rs
+++ b/src/relay_server.rs
@@ -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;