mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 23:38:30 -04:00
Drain IP broadcast sink receiver
This commit is contained in:
parent
d0497e437a
commit
25bcedc855
4 changed files with 161 additions and 6 deletions
|
@ -47,6 +47,12 @@ async fn main() -> anyhow::Result<()> {
|
|||
tokio::spawn(async move { wg.consume_task().await });
|
||||
}
|
||||
|
||||
{
|
||||
// Start IP broadcast drain task for WireGuard
|
||||
let wg = wg.clone();
|
||||
tokio::spawn(async move { wg.broadcast_drain_task().await });
|
||||
}
|
||||
|
||||
info!(
|
||||
"Tunnelling [{}]->[{}] (via [{}] as peer {})",
|
||||
&config.source_addr, &config.dest_addr, &config.endpoint_addr, &config.source_peer_ip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue