diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 21:51:04 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 21:51:04 +0100 |
commit | f7cdd48892dafe00b8956cd2b087814d0257bdb4 (patch) | |
tree | b7e0d7174f5772f3d5acad78a6e0e5f080ff4171 /src/fastd.c | |
parent | 794958aa7834c6703e369d15b99fe0b38a8edb05 (diff) | |
download | fastd-f7cdd48892dafe00b8956cd2b087814d0257bdb4.tar fastd-f7cdd48892dafe00b8956cd2b087814d0257bdb4.zip |
config: don't check configuration before logging has been set up
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fastd.c b/src/fastd.c index d6bfa2f..e456f14 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -879,6 +879,7 @@ int main(int argc, char *argv[]) { fastd_config_t conf; fastd_configure(&ctx, &conf, argc, argv); + ctx.conf = &conf; if (conf.generate_key) { conf.protocol->generate_key(&ctx); @@ -899,6 +900,8 @@ int main(int argc, char *argv[]) { init_log(&ctx); + fastd_config_check(&ctx, &conf); + update_time(&ctx); conf.long_ago = ctx.now; |