diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-20 19:17:49 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-20 19:17:49 +0200 |
commit | 115de59c3222719497a21b2fe30e2ef9c1573eff (patch) | |
tree | 06efe3b4f83323d4058dec85cd9dc2411c869ce5 /src/config.c | |
parent | 78c5d1284c7d8e77fdcb9832a3952b906452046d (diff) | |
download | fastd-115de59c3222719497a21b2fe30e2ef9c1573eff.tar fastd-115de59c3222719497a21b2fe30e2ef9c1573eff.zip |
Warn when no encryption method is set
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 62cfaef..106f92a 100644 --- a/src/config.c +++ b/src/config.c @@ -615,8 +615,10 @@ void fastd_configure(fastd_context_t *ctx, fastd_config_t *conf, int argc, char if (!conf->log_stderr_level && !conf->log_syslog_level && !conf->log_files) conf->log_stderr_level = FASTD_DEFAULT_LOG_LEVEL; - if (!conf->methods[0]) + if (!conf->methods[0]) { + pr_warn(ctx, "no encryption method configured, falling back to method `null' (unencrypted)"); conf->methods[0] = conf->method_default; + } ctx->conf = conf; |