login proxy works

This commit is contained in:
2026-05-20 21:37:15 +02:00
parent 21d448a90f
commit 87a0cdfdad
2 changed files with 30 additions and 36 deletions

View File

@ -9,15 +9,12 @@ pub async fn process_mc_socket(stream: TcpStream) -> Result<(), String> {
loop {
tokio::select! {
Ok(()) = client.in_stream.readable() => {
println!("[{}] in read", client);
let res = client.in_read().await?;
if res == 0 {
break;
}
println!("[{}] continue listening", client);
}
_ = client.out_readable() => {
println!("[{}] out read", client);
let res = client.out_read().await?;
if res == 0 {
break;