From 612abf04589da3463f0d4b240b54ec566fb7b076 Mon Sep 17 00:00:00 2001 From: fosse Date: Tue, 16 Jan 2024 11:23:34 -0500 Subject: [PATCH] properly remove proxy --- lib/view_model/settings/tor_view_model.dart | 2 +- pubspec_base.yaml | 2 +- 2 files 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 77f18ba92..32a66f23c 100644 --- a/lib/view_model/settings/tor_view_model.dart +++ b/lib/view_model/settings/tor_view_model.dart @@ -84,6 +84,6 @@ abstract class TorViewModelBase with Store { Tor.instance.disable(); _settingsStore.shouldStartTorOnLaunch = false; torConnectionStatus = TorConnectionStatus.disconnected; - SocksTCPClient.setProxy(proxies: null); + SocksTCPClient.removeProxy(); } } diff --git a/pubspec_base.yaml b/pubspec_base.yaml index 839adc446..a23e2cf6e 100644 --- a/pubspec_base.yaml +++ b/pubspec_base.yaml @@ -105,7 +105,7 @@ dependencies: socks5_proxy: git: url: https://github.com/perishllc/socks_dart.git - ref: main + ref: d304fcfcc97cb7212bcd347aeb5d96792c128ff3 flutter_svg: ^2.0.9 polyseed: ^0.0.2