big changes

This commit is contained in:
2026-02-25 18:09:20 +07:00
parent bf7d50bcef
commit 2835108b7f
56 changed files with 1111 additions and 775 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ impl Network {
let (stream, addr) = listener.accept().await.expect("Error on connection");
let handler = self.inbound_handler.clone();
tokio::spawn(async move {
let mut conection: Connection = Connection::new(stream, addr);
let mut conection: Connection = Connection::new(stream, addr, false);
let res = conection.handle(handler).await;
match res {
@@ -45,7 +45,7 @@ impl Network {
ConnectionState::Handshake => {
println!("Connection {} handshaked", addr)
}
ConnectionState::Tunnel(stream) => {
ConnectionState::Tunnel(_stream) => {
println!("Connection {} tunnel", addr)
}
ConnectionState::Close => {