aboutsummaryrefslogtreecommitdiff
path: root/src/manager
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager')
-rw-r--r--src/manager/mod.rs4
1 files changed, 2 insertions, 2 deletions
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(),