mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-10 06:34:03 -04:00
Implement port-forwarder configuration parsing
This commit is contained in:
parent
cb09bb8857
commit
651ddaec49
2 changed files with 255 additions and 26 deletions
|
@ -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))
|
||||
})
|
||||
}),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue