fix syncing wallets over tor on first sync

This commit is contained in:
woodser 2025-09-25 00:55:16 -04:00
parent 5f7b55d061
commit 4bd83d4ff0
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

View file

@ -300,7 +300,9 @@ public class XmrWalletService extends XmrWalletBase {
}
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() {