encapsulation of net logic in core

This commit is contained in:
2026-03-26 12:13:43 +07:00
parent 6a0eafd2f5
commit cb837c08f2
12 changed files with 26 additions and 25 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ use crate::{
net::engine::{EngineBuilder, EngineConfig},
tun::routing::reset_platform_routing,
};
use netrunner_core::net::connection::connection::ConnectionRole;
use netrunner_core::net::ConnectionRole;
use netrunner_core::net::network::Network;
use netrunner_logger::{error, info};
use std::sync::{Arc, OnceLock};
+1 -1
View File
@@ -7,7 +7,7 @@ use crate::tun::{routing::reset_platform_routing, tun::Tun};
use net::engine::{EngineBuilder, EngineConfig};
// Импортируем компоненты локального прокси
use netrunner_core::net::connection::connection::ConnectionRole;
use netrunner_core::net::ConnectionRole;
use netrunner_core::net::network::Network;
use tokio_util::sync::CancellationToken;
+1 -2
View File
@@ -1,5 +1,4 @@
use netrunner_core::net::connection::connection::ClientHandler;
use netrunner_core::net::connection::muxer::Muxer;
use netrunner_core::net::ClientHandler;
use smoltcp::iface::PollResult;
use smoltcp::time::Instant;
use smoltcp::wire::{IpAddress, IpCidr};