Implement port-forwarder configuration parsing

This commit is contained in:
Aram 🍐 2021-10-18 01:36:40 -04:00
parent cb09bb8857
commit 651ddaec49
2 changed files with 255 additions and 26 deletions

View file

@ -66,7 +66,7 @@ async fn main() -> anyhow::Result<()> {
tokio::spawn(async move {
port_forward(pf, source_peer_ip, port_pool, wg)
.await
.with_context(|| format!("Port-forward failed: {})", pf))
.unwrap_or_else(|e| error!("Port-forward failed for {} : {}", pf, e))
})
}),
)