aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2022-12-18 17:51:19 +0100
committerselsta <selsta@sent.at>2022-12-18 17:51:19 +0100
commitc8127f651d0dc2fccabb572f7cf6b262d1dd71d8 (patch)
treecac4ed9ac3ebcae46f9f65872d0994f739337540 /main.qml
parent48393db2c75bd306e7d7f5cd2c226880a5eb0386 (diff)
downloadmonzero-gui-c8127f651d0dc2fccabb572f7cf6b262d1dd71d8.tar.gz
monzero-gui-c8127f651d0dc2fccabb572f7cf6b262d1dd71d8.tar.xz
monzero-gui-c8127f651d0dc2fccabb572f7cf6b262d1dd71d8.zip
main: skip proxy when setting localhost remote node
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 15bfa684..b1e58663 100644
--- a/main.qml
+++ b/main.qml
@@ -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: {