main: make socks5 proxy flag override saved setting

This commit is contained in:
selsta committed 2026-08-23 22:36:12 +02:00
1 parent ed9ea9c3c8
commit e68aac122b
1 file changed
+6 -4
+6 -4
View File
@@ -1528,14 +1528,16 @@ ApplicationWindow {
property string proxyAddress: "127.0.0.1:9050"
property bool proxyEnabled: isTails
function getProxyAddress() {
if ((socksProxyFlagSet && socksProxyFlag == "") || !proxyEnabled) {
if (socksProxyFlagSet) {
return socksProxyFlag;
}
if (!proxyEnabled) {
return "";
}
var proxyAddressSetOrForced = socksProxyFlagSet ? socksProxyFlag : proxyAddress;
if (proxyAddressSetOrForced == "") {
if (proxyAddress == "") {
return "127.0.0.1:0";
}
return proxyAddressSetOrForced;
return proxyAddress;
}
function getWalletProxyAddress() {
if (!useRemoteNode) {