modified: frida_core/src/linux_tun.rs
This commit is contained in:
parent
35ae3c42fd
commit
0f8cff244a
@ -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.
|
.name(&cfg.tun_name.unwrap()) // if name is empty, then it is set by kernel.
|
||||||
.mtu(cfg.mtu.unwrap().into())
|
.mtu(cfg.mtu.unwrap().into())
|
||||||
.address(cfg.address.unwrap())
|
.address(cfg.address.unwrap())
|
||||||
.netmask(cfg.netmask.unwrap())
|
.netmask("0.0.0.0".parse())
|
||||||
.destination(cfg.destination.unwrap())
|
.destination(cfg.destination.unwrap())
|
||||||
.up() // or set it up manually using `sudo ip link set <tun-name> up`.
|
.up() // or set it up manually using `sudo ip link set <tun-name> up`.
|
||||||
.try_build() // or `.try_build_mq(queues)` for multi-queue support.
|
.try_build() // or `.try_build_mq(queues)` for multi-queue support.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user