Merge pull request #3089

0fcaadae main: command line option for socks5 proxy (selsta)
This commit is contained in:
Alexander Blair
2020-09-28 19:06:58 -07:00
3 changed files with 13 additions and 6 deletions

View File

@@ -1427,13 +1427,14 @@ ApplicationWindow {
property string proxyAddress: "127.0.0.1:9050"
property bool proxyEnabled: isTails
function getProxyAddress() {
if (!proxyEnabled) {
if ((socksProxyFlagSet && socksProxyFlag == "") || !proxyEnabled) {
return "";
}
if (proxyAddress == "") {
var proxyAddressSetOrForced = socksProxyFlagSet ? socksProxyFlag : proxyAddress;
if (proxyAddressSetOrForced == "") {
return "127.0.0.1:0";
}
return proxyAddress;
return proxyAddressSetOrForced;
}
function getWalletProxyAddress() {
if (!useRemoteNode) {