Revert "do not use Majestic Bank-supplied onion service address for MB API"

This reverts commit 090262017a.
This commit is contained in:
sneurlax 2023-09-11 18:23:53 -05:00
parent 090262017a
commit 20e5f74ab2

View file

@ -47,17 +47,10 @@ 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;