Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): set SSL options properly in background backup process (#11870) (#12206)

Yun Jiangf46abbb5b5be
diff --git a/mobile/lib/services/background.service.dart b/mobile/lib/services/background.service.dart
index b27ed34b94..fc3feb174d 100644
--- a/mobile/lib/services/background.service.dart
+++ b/mobile/lib/services/background.service.dart
@@ -349,6 +349,7 @@ class BackgroundService {
Future<bool> _onAssetsChanged() async {
final Isar db = await loadDb();
+ HttpOverrides.global = HttpSSLCertOverride();
ApiService apiService = ApiService();
apiService.setAccessToken(Store.get(StoreKey.accessToken));
AppSettingsService settingService = AppSettingsService();