Skip to content

Commit

Permalink
Merge pull request #187 from jamesmcm/vopono103
Browse files Browse the repository at this point in the history
Fix wireguard_preup issue for Wireguard custom providers
  • Loading branch information
jamesmcm authored Aug 21, 2022
2 parents d41fcbe + 1c6c4ff commit 14a4350
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "vopono"
description = "Launch applications via VPN tunnels using temporary network namespaces"
version = "0.10.2"
version = "0.10.3"
authors = ["James McMurray <[email protected]>"]
edition = "2021"
license = "GPL-3.0-or-later"
Expand Down
2 changes: 1 addition & 1 deletion vopono_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "vopono_core"
description = "Library code for running VPN connections in network namespaces"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["James McMurray <[email protected]>"]
license = "GPL-3.0-or-later"
Expand Down
6 changes: 3 additions & 3 deletions vopono_core/src/network/netns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ impl NetworkNamespace {
dns: Option<&Vec<IpAddr>>,
hosts_entries: Option<&Vec<String>>,
) -> anyhow::Result<()> {
self.provider
.get_dyn_wireguard_provider()?
.wireguard_preup(config_file.as_path())?;
if let Ok(wgprov) = self.provider.get_dyn_wireguard_provider() {
wgprov.wireguard_preup(config_file.as_path())?;
}

self.wireguard = Some(Wireguard::run(
self,
Expand Down

0 comments on commit 14a4350

Please sign in to comment.