fix ip & route cfg on windows (#28)

This commit is contained in:
Sijie.Sun
2024-03-09 00:24:16 +08:00
committed by GitHub
parent 5f30747f62
commit cb0df51319
7 changed files with 82 additions and 38 deletions

View File

@@ -54,6 +54,7 @@ impl VirtualNic {
let mut config = tun::Configuration::default();
let has_packet_info = cfg!(target_os = "macos");
config.layer(tun::Layer::L3);
config.name(format!("et_{}", self.global_ctx.inst_name));
#[cfg(target_os = "linux")]
{