From 115de59c3222719497a21b2fe30e2ef9c1573eff Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 20 Oct 2013 19:17:49 +0200 Subject: Warn when no encryption method is set --- src/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3