fix syncing wallets over tor on first sync (#1977)

This commit is contained in:
woodser 2025-09-26 00:02:58 -04:00 committed by GitHub
parent 5f7b55d061
commit 518ebaff88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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() {