mirror of
https://github.com/DefectingCat/candy
synced 2025-07-15 16:51:34 +00:00
feat: add ssl field
This commit is contained in:
@ -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)]
|
||||
|
@ -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");
|
||||
|
Reference in New Issue
Block a user