Merge pull request #4085

c8127f6 main: skip proxy when setting localhost remote node (selsta)
This commit is contained in:
luigi1111 2023-01-11 12:16:27 -05:00
commit 55a0bc46e4
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -1447,8 +1447,15 @@ ApplicationWindow {
function getWalletProxyAddress() { function getWalletProxyAddress() {
if (!useRemoteNode) { if (!useRemoteNode) {
return ""; return "";
} else {
const remoteAddress = remoteNodesModel.currentRemoteNode().address;
// skip proxy when using localhost remote node
if (remoteAddress.startsWith("127.0.0.1:") || remoteAddress.startsWith("localhost:")) {
return "";
} else {
return getProxyAddress();
}
} }
return getProxyAddress();
} }
Component.onCompleted: { Component.onCompleted: {