mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-26 00:58:50 +00:00
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
This commit is contained in:
parent
d342dd5cb9
commit
090262017a
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue