Early data option
Some checks failed
Unit Test / test (push) Has been cancelled
ShiftLeft Scan / Scan-Build (push) Has been cancelled

This commit is contained in:
Pascal Engélibert 2026-01-08 11:05:06 +01:00
commit 9518cc8b73
4 changed files with 23 additions and 6 deletions

View file

@ -121,12 +121,20 @@ impl RpxyService {
#[cfg(not(feature = "acme"))]
{
let rpxy_opts = RpxyOptionsBuilder::default()
let mut rpxy_opts = RpxyOptionsBuilder::default()
.proxy_config(proxy_conf.clone())
.app_config_list(app_conf.clone())
.cert_rx(cert_rx.clone())
.runtime_handle(runtime_handle.clone())
.build()?;
for (var, val) in std::env::vars() {
match var.as_str() {
"EARLYDATA" => rpxy_opts.proxy_config.enable_early_data = val == "1",
_ => {}
}
}
self.start_inner(rpxy_opts, cancel_token).await.map_err(|e| anyhow!(e))
}
}