mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +00:00
wrapped set_ssl_option call into NO_SSL conditional. Fixed test.
This commit is contained in:
1 parent
63af66c61f
commit
75b6717d8b
2 files changed
+6
-4
No files matched your search
+4
-2
@@ -3853,9 +3853,11 @@ struct mg_context *mg_start(mg_callback_t user_callback, const char **options) {
|
||||
|
||||
// NOTE(lsm): order is important here. SSL certificates must
|
||||
// be initialized before listening ports. UID must be set last.
|
||||
if (!set_ssl_option(ctx) ||
|
||||
if (!set_gpass_option(ctx) ||
|
||||
#if !defined(NO_SSL)
|
||||
!set_ssl_option(ctx) ||
|
||||
#endif
|
||||
!set_ports_option(ctx) ||
|
||||
!set_gpass_option(ctx) ||
|
||||
#if !defined(_WIN32)
|
||||
!set_uid_option(ctx) ||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user