Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport P2P refactor #3305

Merged
merged 18 commits into from
Jan 31, 2020
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
7f88a67
Merge #11363: net: Split socket create/connect
laanwj Dec 13, 2017
c261173
Merge #13946: p2p: Clarify control flow in ProcessMessage
laanwj Aug 25, 2018
88197c7
Merge #11448: [gui] reset addrProxy/addrSeparateProxyTor if colon cha…
laanwj Oct 9, 2017
94e9944
Merge #11512: Use GetDesireableServiceFlags in seeds, dnsseeds, fixin…
laanwj Jan 24, 2018
fccf28b
Merge #11577: Fix warnings (-Wsign-compare) when building with DEBUG_…
laanwj Jan 29, 2018
f4fb2c1
Merge #11583: Do not make it trivial for inbound peers to generate lo…
laanwj Dec 11, 2017
500a60a
Merge #11744: net: Add missing locks in net.{cpp,h}
laanwj Nov 30, 2017
4954939
Merge #12218: net: Move misbehaving logging to net logging category
laanwj Feb 6, 2018
211c8a3
Merge #12326: net: initialize socket to avoid closing random fd's
laanwj Feb 1, 2018
0357621
Merge #12329: net: don't retry failed oneshot connections forever
laanwj Feb 2, 2018
12a9809
Merge #12342: Extend #11583 to include "version handshake timeout" me…
laanwj Feb 6, 2018
a3ea0e9
Merge #12626: Limit the number of IPs addrman learns from each DNS se…
laanwj Mar 7, 2018
e7beff5
Merge #12855: net: Minor accumulated cleanups
laanwj Apr 19, 2018
0255027
Fix "\n"s
UdjinM6 Jan 28, 2020
6eb6298
More of 12218 for Dash-specific code
UdjinM6 Jan 28, 2020
67c8484
More of 11583 for Dash-specific code
UdjinM6 Jan 28, 2020
0d56f80
More of 13946
UdjinM6 Jan 28, 2020
5cc46c3
Merge #13162: [net] Don't incorrectly log that REJECT messages are un…
laanwj May 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge bitcoin#11448: [gui] reset addrProxy/addrSeparateProxyTor if co…
…lon char missing

ce2418f [gui] reset addrProxy/addrSeparateProxyTor if colon char missing (Cristian Mircea Messel)

Pull request description:

  If addrProxy or addrSeparateProxyTor do not have a colon in the string
  somewhere in the QSettings storage, then attempting to open the options
  dialog will cause the entire program to crash.

  Fixes bitcoin#11209

Tree-SHA512: 2d9e6987cf05af3f41033290b61d00920f7fe4a65bea7efd96ed417a8ca7866d248f091e09947cc8aad3a6a4aa8b7777211cfff7f379a62188be50df2c46d4b2
laanwj authored and PastaPastaPasta committed Jan 26, 2020

Verified

This commit was signed with the committer’s verified signature.
commit 88197c74146f013d084e397c668294a9d4ef6e46
4 changes: 2 additions & 2 deletions src/qt/optionsmodel.cpp
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@ void OptionsModel::Init(bool resetSettings)

if (!settings.contains("fUseProxy"))
settings.setValue("fUseProxy", false);
if (!settings.contains("addrProxy"))
if (!settings.contains("addrProxy") || !settings.value("addrProxy").toString().contains(':'))
settings.setValue("addrProxy", "127.0.0.1:9050");
// Only try to set -proxy, if user has enabled fUseProxy
if (settings.value("fUseProxy").toBool() && !gArgs.SoftSetArg("-proxy", settings.value("addrProxy").toString().toStdString()))
@@ -178,7 +178,7 @@ void OptionsModel::Init(bool resetSettings)

if (!settings.contains("fUseSeparateProxyTor"))
settings.setValue("fUseSeparateProxyTor", false);
if (!settings.contains("addrSeparateProxyTor"))
if (!settings.contains("addrSeparateProxyTor") || !settings.value("addrSeparateProxyTor").toString().contains(':'))
settings.setValue("addrSeparateProxyTor", "127.0.0.1:9050");
// Only try to set -onion, if user has enabled fUseSeparateProxyTor
if (settings.value("fUseSeparateProxyTor").toBool() && !gArgs.SoftSetArg("-onion", settings.value("addrSeparateProxyTor").toString().toStdString()))