We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 064714b commit 900031aCopy full SHA for 900031a
src/lib.rs
@@ -127,7 +127,9 @@ extern "C" fn ngx_http_acme_init_worker(cycle: *mut ngx_cycle_t) -> ngx_int_t {
127
// SAFETY: cycle passed to the module callbacks is never NULL
128
let cycle = unsafe { &mut *cycle };
129
130
- let amcf = HttpAcmeModule::main_conf(cycle).expect("acme main conf");
+ let Some(amcf) = HttpAcmeModule::main_conf(cycle) else {
131
+ return Status::NGX_OK.into();
132
+ };
133
134
if !amcf.is_configured() {
135
ngx_log_debug!(cycle.log, "acme: not configured");
0 commit comments