experimental h3 toml config support
This commit is contained in:
parent
981a81abb2
commit
7283137343
6 changed files with 29 additions and 0 deletions
|
|
@ -151,6 +151,16 @@ pub fn parse_opts(globals: &mut Globals, backends: &mut Backends) -> Result<()>
|
|||
}
|
||||
}
|
||||
|
||||
// experimental
|
||||
if let Some(exp) = config.experimental {
|
||||
if let Some(b) = exp.h3 {
|
||||
globals.http3 = b;
|
||||
if b {
|
||||
info!("Experimental HTTP/3.0 is enabled. Note it is still very unstable.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,12 @@ pub struct ConfigToml {
|
|||
pub max_clients: Option<u32>,
|
||||
pub apps: Option<Apps>,
|
||||
pub default_app: Option<String>,
|
||||
pub experimental: Option<Experimental>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, Default)]
|
||||
pub struct Experimental {
|
||||
pub h3: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, Default)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue