diff options
author | Hristo Venev <hristo@venev.name> | 2020-03-28 11:54:11 +0200 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2020-03-28 12:17:13 +0200 |
commit | f31718d8cbcc691568f732b21b164d4b4b03d897 (patch) | |
tree | 2cf7bfcf363ea7c37ab80029b8b11ca189badc93 /src/manager | |
parent | ba112d49ffe01f4452645b0083aab1f8dd8fdeb1 (diff) |
Use `wg addconf'.
Diffstat (limited to 'src/manager')
-rw-r--r-- | src/manager/mod.rs | 4 |
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(), |