modules encapsulate from each other

This commit is contained in:
2026-03-26 13:19:59 +07:00
parent cb837c08f2
commit c51c086fbc
27 changed files with 194 additions and 175 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ use tokio::{
time::Instant,
};
// Добавили trace для частых логов (попакетно) и debug для состояний
use netrunner_logger::{debug, error, info, trace, warn};
use netrunner_logger::{debug, info, trace, warn};
// ============================================================================
// 1. БАЗОВАЯ СТРУКТУРА (ConnectionCore)
+2 -2
View File
@@ -1,12 +1,12 @@
use bytes::Bytes;
use netrunner_core::nrxp::socks::TargetAddress;
use netrunner_core::nrxp::TargetAddress;
use netrunner_logger::{debug, error, info, trace, warn};
use smoltcp::{
iface::{SocketHandle, SocketSet},
socket::{AnySocket, icmp, tcp, udp},
wire::{IpListenEndpoint, IpProtocol, Ipv4Packet, TcpPacket, UdpPacket},
};
use std::{collections::HashMap, time::Duration, time::Instant as StdInstant};
use std::{collections::HashMap, time::Instant as StdInstant};
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tokio::net::{TcpStream, UdpSocket};
+1 -1
View File
@@ -310,7 +310,7 @@ impl EngineBuilder {
// 4. Подключение к серверу
info!("Establishing secure tunnel to proxy server...");
let muxer = ClientHandler::connect(&self.config.remote_address)
ClientHandler::connect(&self.config.remote_address)
.await
.map_err(|e| format!("Failed to establish secure tunnel: {}", e))?;
info!("Secure tunnel established, Muxer is ready.");