Fix Misconfigured in-memory store cannot be recovered in recovery mode

This commit is contained in:
Maurus Decimus
2026-07-12 16:02:28 +02:00
parent 0f6fb0c321
commit ca5971e9a1
2 changed files with 11 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If
- Branding: Custom logos for domains do not work.
- Sieve: add `Received` headers to auto-generated messages and detect loops.
- MTA: Resume queue processing does not work.
- Misconfigured in-memory store cannot be recovered in recovery mode.
## [0.16.12] - 2026-07-06

View File

@@ -445,8 +445,16 @@ impl Http {
},
allowed_endpoint: bp
.compile_expr(ObjectType::Http.singleton(), &http.ctx_allowed_endpoints()),
rate_authenticated: http.rate_limit_authenticated,
rate_anonymous: http.rate_limit_anonymous,
rate_authenticated: if bp.registry.is_recovery_mode() {
None
} else {
http.rate_limit_authenticated
},
rate_anonymous: if bp.registry.is_recovery_mode() {
None
} else {
http.rate_limit_anonymous
},
response_headers: http_headers,
use_forwarded: http.use_x_forwarded,
redirect_root: http.redirect_root,