mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-12 10:30:46 -04:00
fix syncing wallets over tor on first sync
This commit is contained in:
parent
5f7b55d061
commit
4bd83d4ff0
1 changed files with 3 additions and 1 deletions
|
@ -300,7 +300,9 @@ public class XmrWalletService extends XmrWalletBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isProxyApplied(boolean wasWalletSynced) {
|
public boolean isProxyApplied(boolean wasWalletSynced) {
|
||||||
return xmrConnectionService.isProxyApplied() || preferences.isProxyApplied(wasWalletSynced);
|
MoneroRpcConnection connection = xmrConnectionService.getConnection();
|
||||||
|
if (connection != null && connection.isOnion()) return true; // must use proxy if connected to onion
|
||||||
|
return xmrConnectionService.isProxyApplied() && preferences.isProxyApplied(wasWalletSynced);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWalletPassword() {
|
public String getWalletPassword() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue