diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-20 08:28:02 +0100 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-20 08:28:08 +0100 |
commit | 4a8709821e6467f6ddd108caa8e23f86e7048e50 (patch) | |
tree | ec6e476c4ba08155e9627f8e04e9ccce0d8091b4 /src/util/system.h | |
parent | d433f59f1eb815665a6b3a64d90f0b87864d6fe7 (diff) | |
parent | 1d4122dfefcb0a33c3d5bf7bbe2c7cd7e09d3764 (diff) | |
download | bitcoin-4a8709821e6467f6ddd108caa8e23f86e7048e50.tar.xz |
Merge bitcoin/bitcoin#24830: init: Allow -proxy="" setting values
1d4122dfefcb0a33c3d5bf7bbe2c7cd7e09d3764 init: Allow -proxy="" setting values (Ryan Ofsky)
Pull request description:
This drops the `No proxy server specified. Use -proxy=<ip> or -proxy=<ip:port>` error when a empty `-proxy=` command line argument, `bitcoin.conf` value, or `settings.json` value is specified, and just makes bitcoin connect and listen normally in these cases.
The error was originally added in https://github.com/bitcoin/bitcoin/pull/20003 to prevent a bare `-proxy` command line argument with no assignment from clearing proxy settings. But it was implemented in an overbroad way breaking empty `-proxy=` assignments as well.
The motivation for this change is to prevent a GUI bug that happens with https://github.com/bitcoin/bitcoin/pull/15936, reported in https://github.com/bitcoin/bitcoin/pull/15936#pullrequestreview-937685759 by vasild, that happens after a proxy setting is enabled and disabled in the GUI. But this change also makes sense on its own to remove a potentially confusing error message.
ACKs for top commit:
hebasto:
re-ACK 1d4122dfefcb0a33c3d5bf7bbe2c7cd7e09d3764, only rebased since my recent [review](https://github.com/bitcoin/bitcoin/pull/24830#pullrequestreview-941255672).
Tree-SHA512: 753adfce199ed078a6cd9e0ea78e76c0b14070f8fcfe2a4632cd0c6dfe6b4e135ddffbe11a97e5e30520ea9e5bda00bad1493cbaef74cf425aa8613249167f53
Diffstat (limited to 'src/util/system.h')
-rw-r--r-- | src/util/system.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/system.h b/src/util/system.h index a7f4d16911..64585cbfac 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -175,6 +175,7 @@ public: // ALLOW_STRING = 0x08, //!< unimplemented, draft implementation in #16545 // ALLOW_LIST = 0x10, //!< unimplemented, draft implementation in #16545 DISALLOW_NEGATION = 0x20, //!< disallow -nofoo syntax + DISALLOW_ELISION = 0x40, //!< disallow -foo syntax that doesn't assign any value DEBUG_ONLY = 0x100, /* Some options would cause cross-contamination if values for |