From d383f3e1a64e5723b18ca408e7e0c8785ab485ea Mon Sep 17 00:00:00 2001 From: fosse Date: Thu, 1 Feb 2024 12:39:51 -0500 Subject: [PATCH] small fix --- lib/view_model/settings/tor_view_model.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/view_model/settings/tor_view_model.dart b/lib/view_model/settings/tor_view_model.dart index 73d6a7820..66b5ebbaa 100644 --- a/lib/view_model/settings/tor_view_model.dart +++ b/lib/view_model/settings/tor_view_model.dart @@ -50,7 +50,7 @@ abstract class TorViewModelBase with Store { if (appStore.wallet != null) { final node = _settingsStore.getCurrentNode(appStore.wallet!.type); if (connect && (node.socksProxyAddress?.isEmpty ?? true)) { - node.socksProxyAddress = "${InternetAddress.loopbackIPv4.address}:${Tor.instance.port}"; + node.socksProxyAddress = "${InternetAddress.loopbackIPv4.address}:${torInstance.port}"; } else if (!connect) { node.socksProxyAddress = null; } @@ -72,7 +72,7 @@ abstract class TorViewModelBase with Store { if (!torStarted) { torStarted = true; - torInstance = await Tor.init(); + torInstance = await Tor.init(); } await torInstance.enable();