Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Whitelist for windows only

Neeraj Gupta610a5d8dcb35
diff --git a/auth/lib/main.dart b/auth/lib/main.dart
index 2a498cbf02..9f6e611b3f 100644
--- a/auth/lib/main.dart
+++ b/auth/lib/main.dart
@@ -66,6 +66,9 @@ Future<void> initSystemTray() async {
void main() async {
WidgetsFlutterBinding.ensureInitialized();
+ if (Platform.isWindows) {
+ await whiteListLetsEncryptRootCA();
+ }
if (PlatformUtil.isDesktop()) {
await windowManager.ensureInitialized();
@@ -87,7 +90,7 @@ void main() async {
}
}
-void whiteListLetsEncryptRootCA() async {
+Future<void> whiteListLetsEncryptRootCA() async {
try {
// https://stackoverflow.com/a/71090239
// https://github.com/ente-io/ente/issues/2178