use cache instead of support dir for tor

This commit is contained in:
Fabian Freund
2025-11-16 07:08:13 +01:00
parent 5c6f2c2679
commit 0d2b078469
+3 -7
View File
@@ -152,13 +152,9 @@ class Tor {
broadcastState();
// Set the state and cache directories.
final Directory appSupportDir = await getApplicationSupportDirectory();
final stateDir = await Directory(
'${appSupportDir.path}/tor_state',
).create();
final cacheDir = await Directory(
'${appSupportDir.path}/tor_cache',
).create();
final appCacheDir = await getApplicationCacheDirectory();
final stateDir = await Directory('${appCacheDir.path}/tor_state').create();
final cacheDir = await Directory('${appCacheDir.path}/tor_cache').create();
// Generate a random port.
final newPort = await _getRandomUnusedPort();