feat: add ssl field

This commit is contained in:
xfy
2025-02-25 15:48:09 +08:00
parent ba2b9539ba
commit 0671c84ae4
2 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,10 @@ pub struct SettingHost {
pub ip: String,
/// Host port
pub port: u32,
/// SSL certificate location
pub certificate: Option<String>,
/// ssl key location
pub certificate_key: Option<String>,
route: Vec<Option<SettingRoute>>,
/// Host route map
#[serde(skip_deserializing, skip_serializing)]

View File

@ -47,7 +47,6 @@ impl SettingHost {
};
handle_connection(conn, self, &server, &graceful).await;
},
_ = ctrl_c.as_mut() => {
drop(listener);
info!("Ctrl-C received, starting shutdown");