From abf03601c41e8c3ffd5cf539be87d91d3d9c3ca1 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Mon, 9 Dec 2024 20:53:44 +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 addb2a0..b6dcdd2 100644 --- a/frida_core/src/linux_tun.rs +++ b/frida_core/src/linux_tun.rs @@ -11,7 +11,7 @@ pub fn create(cfg: AbstractDevice) -> (DeviceReader, DeviceWriter) { .name(&cfg.tun_name.unwrap()) // if name is empty, then it is set by kernel. .mtu(cfg.mtu.unwrap().into()) .address(cfg.address.unwrap()) - .netmask("0.0.0.0".parse()) + .netmask("0.0.0.0".parse().unwrap()) .destination(cfg.destination.unwrap()) .up() // or set it up manually using `sudo ip link set up`. .try_build() // or `.try_build_mq(queues)` for multi-queue support.