aboutsummaryrefslogtreecommitdiff
path: root/src/manager
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2020-03-28 11:54:11 +0200
committerHristo Venev <hristo@venev.name>2020-03-28 12:17:13 +0200
commitf31718d8cbcc691568f732b21b164d4b4b03d897 (patch)
tree2cf7bfcf363ea7c37ab80029b8b11ca189badc93 /src/manager
parentba112d49ffe01f4452645b0083aab1f8dd8fdeb1 (diff)
Use `wg addconf'.
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(),