refactor: make some config parameters in globals belong to other struct
This commit is contained in:
parent
80e10d5ccd
commit
f8d37f7846
8 changed files with 109 additions and 101 deletions
|
|
@ -218,6 +218,15 @@ pub struct Backends {
|
|||
pub default_server_name_bytes: Option<ServerNameBytesExp>, // for plaintext http
|
||||
}
|
||||
|
||||
impl Default for Backends {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
default_server_name_bytes: None,
|
||||
apps: HashMap::<ServerNameBytesExp, Backend>::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub type SniServerCryptoMap = HashMap<ServerNameBytesExp, Arc<ServerConfig>>;
|
||||
pub struct ServerCrypto {
|
||||
// For Quic/HTTP3, only servers with no client authentication
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue