modified: frida_core/src/linux_tun.rs

This commit is contained in:
Michael Wain 2024-12-09 19:05:34 +03:00
parent a2a066a29d
commit 0a772e5136

View File

@ -8,7 +8,7 @@ use crate::device::AbstractDevice;
pub fn create(cfg: AbstractDevice) -> (DeviceReader, DeviceWriter) {
let tun = Arc::new(
Tun::builder()
.name(cfg.tun_name.unwrap()) // if name is empty, then it is set by kernel.
.name(&cfg.tun_name.unwrap()) // if name is empty, then it is set by kernel.
.mtu(cfg.mtu.unwrap())
.address(cfg.address.unwrap())
.netmask(cfg.netmask.unwrap())