Skip to content

Commit

Permalink
Clone only the socket pool, not whole config.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-grz committed Jan 24, 2025
1 parent 724ca62 commit d760acb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/telio-wg/src/wg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,23 +339,24 @@ impl DynamicWg {
where
Self: Sized,
{
let socket_pool = cfg.socket_pool.clone();
let adapter = Self::start_adapter(cfg.try_clone()?)?;
#[cfg(unix)]
return Ok(Self::start_with(
io,
adapter,
link_detection,
cfg.try_clone()?,
cfg,
ipv6_enabled,
cfg.socket_pool,
socket_pool,
));
#[cfg(windows)]
return Ok(Self::start_with(
io,
adapter,
link_detection,
ipv6_enabled,
cfg.socket_pool,
socket_pool,
));
}

Expand Down

0 comments on commit d760acb

Please sign in to comment.