mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-06-07 00:01:40 +00:00
router refactor
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
use futures::stream::TryStreamExt;
|
||||
use rtnetlink::Handle;
|
||||
use core::fmt;
|
||||
use std::{error::Error, net::Ipv4Addr, sync::Arc};
|
||||
use tokio_tun::{Tun, TunBuilder};
|
||||
|
||||
@@ -61,4 +62,4 @@ pub async fn setup_node(tun_addr: Ipv4Addr) -> Result<Arc<Tun>, Box<dyn Error>>
|
||||
println!("Static route created");
|
||||
|
||||
Ok(tun)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user