aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-09-29 17:14:57 +0300
committerHristo Venev <hristo@venev.name>2019-09-29 18:06:10 +0300
commit1c42c390c0d076d8c25eb9d29767da151dd590d0 (patch)
tree3770fcae4e02c6ddca5e1f2914f61f2530271fce /src/main.rs
parent56d37f135536c7d17ab98c6671094925dee64a5e (diff)
Create separate files for psks.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index b6b5ce1..731357f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,6 +17,7 @@ use std::{fs, io};
use toml;
mod config;
+mod fileutil;
mod manager;
mod model;
mod proto;
@@ -188,7 +189,7 @@ fn run_with_cmdline(argv0: &str, args: &mut impl Iterator<Item = OsString>) -> i
fn run_daemon(ifname: OsString, mut config: config::Config) -> i32 {
maybe_get_var(&mut config.updater.cache_directory, "CACHE_DIRECTORY");
- maybe_get_var(&mut config.state_directory, "RUNTIME_DIRECTORY");
+ maybe_get_var(&mut config.runtime_directory, "RUNTIME_DIRECTORY");
let mut m = match manager::Manager::new(ifname, config) {
Ok(m) => m,