From 43953782f99a458d057b15bb7c586499ef1566b3 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 6 Sep 2012 10:06:30 +0100 Subject: [PATCH] Do not require SSL, fix for issue 20 --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index b478c1df..844afa34 100644 --- a/mongoose.c +++ b/mongoose.c @@ -4429,7 +4429,7 @@ struct mg_context *mg_start(mg_callback_t user_callback, void *user_data, // be initialized before listening ports. UID must be set last. if (!set_gpass_option(ctx) || #if !defined(NO_SSL) - !set_ssl_option(ctx) || + (ctx->config[SSL_CERTIFICATE] != NULL && !set_ssl_option(ctx)) || #endif !set_ports_option(ctx) || #if !defined(_WIN32)