wip: support rustls-0.23 for http3-quinn

This commit is contained in:
Jun Kurihara 2024-05-28 21:39:38 +09:00
commit 234abae5dd
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
10 changed files with 63 additions and 53 deletions

View file

@ -13,8 +13,8 @@ publish.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
# default = ["http3-quinn", "cache", "rustls-backend"]
default = ["cache", "rustls-backend"]
default = ["http3-quinn", "cache", "rustls-backend"]
# default = ["cache", "rustls-backend"]
http3-quinn = ["rpxy-lib/http3-quinn"]
http3-s2n = ["rpxy-lib/http3-s2n"]
native-tls-backend = ["rpxy-lib/native-tls-backend"]

View file

@ -73,7 +73,6 @@ pub fn build_settings(config: &ConfigToml) -> std::result::Result<(ProxyConfig,
// build applications
let mut app_config_list_inner = Vec::<AppConfig>::new();
// let mut backends = Backends::new();
for (app_name, app) in apps.0.iter() {
let _server_name_string = app.server_name.as_ref().ok_or(anyhow!("No server name"))?;
let registered_app_name = app_name.to_ascii_lowercase();

View file

@ -230,7 +230,10 @@ impl Application {
tls.https_redirection.unwrap()
};
Some(TlsConfig { https_redirection })
Some(TlsConfig {
mutual_tls: tls.client_ca_cert_path.is_some(),
https_redirection,
})
} else {
None
};