From c8127f651d0dc2fccabb572f7cf6b262d1dd71d8 Mon Sep 17 00:00:00 2001 From: selsta Date: Sun, 18 Dec 2022 17:51:19 +0100 Subject: [PATCH] main: skip proxy when setting localhost remote node --- main.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: {