mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
fix fiat/exchange over tor, actually this time
This commit is contained in:
parent
e50785ed45
commit
0137221e34
1 changed files with 8 additions and 8 deletions
|
@ -109,7 +109,7 @@ class ProxyWrapper {
|
|||
|
||||
if (onionUri != null) {
|
||||
try {
|
||||
return makeGet(
|
||||
return await makeGet(
|
||||
client: torClient!,
|
||||
uri: onionUri,
|
||||
headers: headers,
|
||||
|
@ -119,7 +119,7 @@ class ProxyWrapper {
|
|||
|
||||
if (clearnetUri != null && torConnectionMode != TorConnectionMode.onionOnly) {
|
||||
try {
|
||||
return makeGet(
|
||||
return await makeGet(
|
||||
client: torClient!,
|
||||
uri: clearnetUri,
|
||||
headers: headers,
|
||||
|
@ -131,8 +131,8 @@ class ProxyWrapper {
|
|||
if (clearnetUri != null && !torOnly && torConnectionMode != TorConnectionMode.onionOnly) {
|
||||
try {
|
||||
return HttpOverrides.runZoned(
|
||||
() {
|
||||
return makeGet(
|
||||
() async {
|
||||
return await makeGet(
|
||||
client: HttpClient(),
|
||||
uri: clearnetUri,
|
||||
headers: headers,
|
||||
|
@ -180,7 +180,7 @@ class ProxyWrapper {
|
|||
|
||||
if (onionUri != null) {
|
||||
try {
|
||||
return makePost(
|
||||
return await makePost(
|
||||
client: torClient!,
|
||||
uri: onionUri,
|
||||
headers: headers,
|
||||
|
@ -190,7 +190,7 @@ class ProxyWrapper {
|
|||
|
||||
if (clearnetUri != null && torConnectionMode != TorConnectionMode.onionOnly) {
|
||||
try {
|
||||
return makePost(
|
||||
return await makePost(
|
||||
client: torClient!,
|
||||
uri: clearnetUri,
|
||||
headers: headers,
|
||||
|
@ -202,8 +202,8 @@ class ProxyWrapper {
|
|||
if (clearnetUri != null && !torOnly && torConnectionMode != TorConnectionMode.onionOnly) {
|
||||
try {
|
||||
return HttpOverrides.runZoned(
|
||||
() {
|
||||
return makePost(
|
||||
() async {
|
||||
return await makePost(
|
||||
client: HttpClient(),
|
||||
uri: clearnetUri,
|
||||
headers: headers,
|
||||
|
|
Loading…
Reference in a new issue