fix ip & route cfg on windows (#28)

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

No files matched your search

@@ -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")]
{