login proxy works
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user