Skip to content

Commit

Permalink
update: rename first response
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 committed Aug 16, 2023
1 parent 43882e8 commit 6954e64
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,6 @@ mod proxy {
}
};

{
// first write, normal is tls client hello
let mut buffer: [u8; 2048] = [0; 2048];
let n = server_socket.read(&mut buffer).await?;
if n > 0 {
remote_socket.write_all(&buffer[..n]).await?;
}
}

// write response
server_socket
.write(&[
Expand Down

0 comments on commit 6954e64

Please sign in to comment.