From f31718d8cbcc691568f732b21b164d4b4b03d897 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Sat, 28 Mar 2020 11:54:11 +0200 Subject: Use `wg addconf'. --- src/manager/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/manager') diff --git a/src/manager/mod.rs b/src/manager/mod.rs index 646349a..0425e9d 100644 --- a/src/manager/mod.rs +++ b/src/manager/mod.rs @@ -35,11 +35,11 @@ impl Manager { io::Error::new(io::ErrorKind::InvalidInput, "runtime directory required") })?; - let mut state_path = runtime_directory; + let mut state_path = runtime_directory.clone(); state_path.push("state.json"); let mut m = Self { - dev: wg::Device::open(ifname)?, + dev: wg::Device::open(ifname, runtime_directory)?, global_config: c.global, sources: vec![], current: model::Config::empty(), -- cgit