use cache instead of support dir for tor
This commit is contained in:
1 parent
5c6f2c2679
commit
0d2b078469
1 file changed
+3
-7
@@ -152,13 +152,9 @@ class Tor {
|
|||||||
broadcastState();
|
broadcastState();
|
||||||
|
|
||||||
// Set the state and cache directories.
|
// Set the state and cache directories.
|
||||||
final Directory appSupportDir = await getApplicationSupportDirectory();
|
final appCacheDir = await getApplicationCacheDirectory();
|
||||||
final stateDir = await Directory(
|
final stateDir = await Directory('${appCacheDir.path}/tor_state').create();
|
||||||
'${appSupportDir.path}/tor_state',
|
final cacheDir = await Directory('${appCacheDir.path}/tor_cache').create();
|
||||||
).create();
|
|
||||||
final cacheDir = await Directory(
|
|
||||||
'${appSupportDir.path}/tor_cache',
|
|
||||||
).create();
|
|
||||||
|
|
||||||
// Generate a random port.
|
// Generate a random port.
|
||||||
final newPort = await _getRandomUnusedPort();
|
final newPort = await _getRandomUnusedPort();
|
||||||
|
|||||||
Reference in new issue
Block a user