tor ip leak protection

This commit is contained in:
Fabian Freund
2025-09-26 15:36:36 +02:00
parent 7da05d0780
commit 9ec56ac62a
3 changed files with 75 additions and 65 deletions
@@ -38,11 +38,9 @@ class ProxySettingsReplication extends _$ProxySettingsReplication {
fireImmediately: true,
torProxyServiceProvider.select((data) => data.value),
(previous, next) async {
if (next != null) {
await ref
.read(torProxyRepositoryProvider.notifier)
.setProxyPort(next);
}
await ref
.read(torProxyRepositoryProvider.notifier)
.setProxyPort(next ?? -1);
},
onError: (error, stackTrace) {
logger.e(