Skip to content

Commit

Permalink
fix(phantun): fix tokio-tun incompatiable API change
Browse files Browse the repository at this point in the history
  • Loading branch information
dndx committed Jan 2, 2025
1 parent f436325 commit 62f0278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion phantun/src/bin/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ async fn main() -> io::Result<()> {
.up() // or set it up manually using `sudo ip link set <tun-name> up`.
.address(tun_local)
.destination(tun_peer)
.try_build_mq(num_cpus)
.queues(num_cpus)
.build()
.unwrap();

if remote_addr.is_ipv6() {
Expand Down
3 changes: 2 additions & 1 deletion phantun/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ async fn main() -> io::Result<()> {
.up() // or set it up manually using `sudo ip link set <tun-name> 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) {
Expand Down

0 comments on commit 62f0278

Please sign in to comment.