Skip to content

Commit 1c6c4ff

Browse files
committed
Fix wireguard_preup issue for Wireguard custom providers
1 parent d41fcbe commit 1c6c4ff

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "vopono"
33
description = "Launch applications via VPN tunnels using temporary network namespaces"
4-
version = "0.10.2"
4+
version = "0.10.3"
55
authors = ["James McMurray <[email protected]>"]
66
edition = "2021"
77
license = "GPL-3.0-or-later"

vopono_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "vopono_core"
33
description = "Library code for running VPN connections in network namespaces"
4-
version = "0.1.2"
4+
version = "0.1.3"
55
edition = "2021"
66
authors = ["James McMurray <[email protected]>"]
77
license = "GPL-3.0-or-later"

vopono_core/src/network/netns.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ impl NetworkNamespace {
376376
dns: Option<&Vec<IpAddr>>,
377377
hosts_entries: Option<&Vec<String>>,
378378
) -> anyhow::Result<()> {
379-
self.provider
380-
.get_dyn_wireguard_provider()?
381-
.wireguard_preup(config_file.as_path())?;
379+
if let Ok(wgprov) = self.provider.get_dyn_wireguard_provider() {
380+
wgprov.wireguard_preup(config_file.as_path())?;
381+
}
382382

383383
self.wireguard = Some(Wireguard::run(
384384
self,

0 commit comments

Comments
 (0)