diff --git a/src/network/tun_win.rs b/src/network/tun_win.rs index 168961c..98113b0 100644 --- a/src/network/tun_win.rs +++ b/src/network/tun_win.rs @@ -80,9 +80,9 @@ impl Iface { fn create_wintun(path: &str,name: &str) -> Iface { let wt = unsafe { wintun::load_from_path(path) }.expect("failed to load wintun"); - let adapter = match wintun::Adapter::open(&wt, "Demo") { + let adapter = match wintun::Adapter::open(&wt, name) { Ok(a) => a, - Err(e) => wintun::Adapter::create(&wt, "Demo", "Example", None) + Err(e) => wintun::Adapter::create(&wt, name, "Example", None) .expect("failed to create wintun adapter"), }; let session = Arc::new(adapter.start_session(wintun::MAX_RING_CAPACITY).unwrap());