small fix

This commit is contained in:
fosse 2024-02-01 12:39:51 -05:00
parent 92b28ceacb
commit d383f3e1a6

View file

@ -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;
}