Added HTTPS support for all Servarrs

This commit is contained in:
2024-11-02 18:32:44 -06:00
parent 76f22e7434
commit f6f477b124
9 changed files with 218 additions and 122 deletions
+6 -2
View File
@@ -62,9 +62,13 @@ impl<'a, 'b> NetworkTrait for Network<'a, 'b> {
}
impl<'a, 'b> Network<'a, 'b> {
pub fn new(app: &'a Arc<Mutex<App<'b>>>, cancellation_token: CancellationToken) -> Self {
pub fn new(
app: &'a Arc<Mutex<App<'b>>>,
cancellation_token: CancellationToken,
client: Client,
) -> Self {
Network {
client: Client::new(),
client,
app,
cancellation_token,
}