This commit is contained in:
Aram 🍐 2021-10-14 21:31:09 -04:00
parent bf489900e6
commit ccb51fe5f8
3 changed files with 190 additions and 15 deletions

View file

@ -33,7 +33,7 @@ async fn main() -> anyhow::Result<()> {
let config = Config::from_args().with_context(|| "Failed to read config")?;
let port_pool = Arc::new(PortPool::new());
let wg = WireGuardTunnel::new(&config)
let wg = WireGuardTunnel::new(&config, port_pool.clone())
.await
.with_context(|| "Failed to initialize WireGuard tunnel")?;
let wg = Arc::new(wg);