modules encapsulate from each other
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user