fix(phantun): fix tokio-tun incompatiable API change
Some checks failed
Docker image build / build (push) Has been cancelled
Rust / build (push) Has been cancelled

This commit is contained in:
Datong Sun 2025-01-02 05:50:41 -08:00
parent f436325d23
commit 62f0278c1a
2 changed files with 4 additions and 2 deletions

View File

@ -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() {

View File

@ -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) {