trying to fix udp telegram

This commit is contained in:
2026-03-26 19:55:07 +07:00
parent 64d09ee7bf
commit 3eb2df3a34
10 changed files with 65 additions and 59 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ use tokio_util::sync::CancellationToken;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
netrunner_logger::Logger::init();
netrunner_logger::Logger::global().set_level("debug");
info!("Initializing NetRunner Stack...");
let remote_address = "147.45.43.70:443".to_string();
@@ -23,7 +24,7 @@ async fn main() -> anyhow::Result<()> {
// ==================================================
let config = EngineConfig::new(&remote_address)
.with_cache_path(".")
.with_mtu(1350);
.with_mtu(1500);
// ВАЖНО: Инициализируем глобальные настройки сети (MTU, размеры буферов Muxer'а)
NetworkConfig::init_global(config.mtu);