From 0a772e5136b0373a9ba690f7d2cbac2363854c6d Mon Sep 17 00:00:00 2001 From: alterdekim Date: Mon, 9 Dec 2024 19:05:34 +0300 Subject: [PATCH] modified: frida_core/src/linux_tun.rs --- frida_core/src/linux_tun.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frida_core/src/linux_tun.rs b/frida_core/src/linux_tun.rs index 3f4b625..2fc91d2 100644 --- a/frida_core/src/linux_tun.rs +++ b/frida_core/src/linux_tun.rs @@ -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())