From 090262017a59a078158cb5eac165555e71472549 Mon Sep 17 00:00:00 2001 From: sneurlax <sneurlax@gmail.com> Date: Mon, 11 Sep 2023 18:23:53 -0500 Subject: [PATCH] do not use Majestic Bank-supplied onion service address for MB API intentionally left unused imports TODO enable tor services in cypherstack/tor then revert this snippet, see https://github.com/cypherstack/tor/issues/10#issuecomment-1714731696 --- .../exchange/majestic_bank/majestic_bank_api.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/services/exchange/majestic_bank/majestic_bank_api.dart b/lib/services/exchange/majestic_bank/majestic_bank_api.dart index d32209ae5..4a23597a5 100644 --- a/lib/services/exchange/majestic_bank/majestic_bank_api.dart +++ b/lib/services/exchange/majestic_bank/majestic_bank_api.dart @@ -47,10 +47,17 @@ class MajesticBankAPI { // final client = this.client ?? http.Client(); int code = -1; try { + // Use Tor if enabled. + // + // This section is commented out because Arti does not yet support + // onion services by default. Once it does, we can uncomment the + // proxyInfo ternary below. + // + // TODO: enable onion services in Arti and uncomment the snippet below. final response = await client.get( url: uri, proxyInfo: - Prefs.instance.useTor ? TorService.sharedInstance.proxyInfo : null, + /*Prefs.instance.useTor ? TorService.sharedInstance.proxyInfo :*/ null, ); code = response.code;