If proxy is disabled in the gui but enabled via the command line, it needs to be added to the override list.
qt: add proxy to options overridden if necessary. Fixes #4975 #4976
pull theuni wants to merge 1 commits into bitcoin:master from theuni:proxyoverride changing 1 files +2 −0-
theuni commented at 2:34 AM on September 25, 2014: member
-
in src/qt/optionsmodel.cpp:None in 7f882b31ad outdated
118 | @@ -119,6 +119,8 @@ void OptionsModel::Init() 119 | // Only try to set -proxy, if user has enabled fUseProxy 120 | if (settings.value("fUseProxy").toBool() && !SoftSetArg("-proxy", settings.value("addrProxy").toString().toStdString())) 121 | addOverriddenOption("-proxy"); 122 | + else if(!settings.value("fUseProxy").toBool() && GetBoolArg("-proxy", false))
laanwj commented at 6:15 AM on September 25, 2014:GetBoolArg on -proxy?
theuni commented at 6:43 AM on September 25, 2014:We only need to know if it was set to anything, since an invalid setting would cause an exit before getting this far.
I suppose GetArg("-proxy", "") would be more readable?
laanwj commented at 6:50 AM on September 25, 2014:Indeed, please do that instead. That code is already bad enough without confusing argument types :-)
theuni commented at 7:18 AM on September 25, 2014:Yep, fair enough. Will update.
theuni force-pushed on Sep 25, 2014theuni commented at 9:45 PM on September 25, 2014: memberUpdated to use GetArg()
27c3e91014qt: add proxy to options overridden if necessary.
If proxy is disabled in the gui but enabled via the command line, it needs to be added to the override list.
BitcoinPullTester commented at 9:58 PM on September 25, 2014: noneAutomatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4976_27c3e91014d65091b096b97680b95d1b130a284d/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
laanwj commented at 8:14 AM on September 26, 2014: memberUntested ACK. @stevenwagner can you check if this solves your problem?
laanwj merged this on Oct 7, 2014laanwj closed this on Oct 7, 2014laanwj referenced this in commit 7c6cbff0e5 on Oct 7, 2014MarcoFalke locked this on Sep 8, 2021Contributors
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-18 15:15 UTC
More mirrored repositories can be found on mirror.b10c.me