diff --git a/phantun/src/bin/client.rs b/phantun/src/bin/client.rs index e0c4875..2219953 100644 --- a/phantun/src/bin/client.rs +++ b/phantun/src/bin/client.rs @@ -156,7 +156,8 @@ async fn main() -> io::Result<()> { .up() // or set it up manually using `sudo ip link set up`. .address(tun_local) .destination(tun_peer) - .try_build_mq(num_cpus) + .queues(num_cpus) + .build() .unwrap(); if remote_addr.is_ipv6() { diff --git a/phantun/src/bin/server.rs b/phantun/src/bin/server.rs index 5f33f39..5160d0e 100644 --- a/phantun/src/bin/server.rs +++ b/phantun/src/bin/server.rs @@ -155,7 +155,8 @@ async fn main() -> io::Result<()> { .up() // or set it up manually using `sudo ip link set up`. .address(tun_local) .destination(tun_peer) - .try_build_mq(num_cpus) + .queues(num_cpus) + .build() .unwrap(); if let (Some(tun_local6), Some(tun_peer6)) = (tun_local6, tun_peer6) {