mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-28 18:56:32 +02:00
Merge pull request #4085
c8127f6
main: skip proxy when setting localhost remote node (selsta)
This commit is contained in:
commit
55a0bc46e4
9
main.qml
9
main.qml
@ -1447,9 +1447,16 @@ 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: {
|
||||||
MoneroComponents.Style.blackTheme = persistentSettings.blackTheme
|
MoneroComponents.Style.blackTheme = persistentSettings.blackTheme
|
||||||
|
Loading…
Reference in New Issue
Block a user