mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 11:18:30 -04:00
yippee
This commit is contained in:
parent
bf489900e6
commit
ccb51fe5f8
3 changed files with 190 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue