diff --git a/lib/services/tor_service.dart b/lib/services/tor_service.dart index b31de58f3..81cf127b8 100644 --- a/lib/services/tor_service.dart +++ b/lib/services/tor_service.dart @@ -1,10 +1,11 @@ import 'dart:io'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:tor_ffi_plugin/tor_ffi_plugin.dart'; + +import '../utilities/logger.dart'; import 'event_bus/events/global/tor_connection_status_changed_event.dart'; import 'event_bus/global_event_bus.dart'; -import '../utilities/logger.dart'; -import 'package:tor_ffi_plugin/tor_ffi_plugin.dart'; final pTorService = Provider((_) => TorService.sharedInstance); @@ -49,7 +50,7 @@ class TorService { }) { _tor ??= mockableOverride ?? Tor.instance; _torDataDirPath ??= torDataDirPath; - _tor?.enable(torDataDirPath: torDataDirPath); + _tor?.start(torDataDirPath: torDataDirPath); } /// Start the Tor service.