main: skip proxy when setting localhost remote node

This commit is contained in:
selsta 2022-12-18 17:51:19 +01:00
parent 48393db2c7
commit c8127f651d
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -1447,8 +1447,15 @@ ApplicationWindow {
function getWalletProxyAddress() {
if (!useRemoteNode) {
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: {