use cache instead of support dir for tor
This commit is contained in:
@@ -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