diff options
Diffstat (limited to 'src/relay_server.rs')
-rw-r--r-- | src/relay_server.rs | 2 |
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; |