Repository navigation
Conversation
onion proxy is already initialized by AppInitMain() function in init.cpp The removed code contains the assumption that the proxy is local. If it has been initialized to be remote and configured by using the -proxy option, the removed code was breaking the config. Signed-off-by: Olivier Langlois <[email protected]>
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
This code is there to set the Removing it is not a good solution.
You likely want to set |
|
Seperately from that I do think this code could be better. Right now, it assumes that port |
This is what #15423 does. |
Oops, I completely forgot about that one. |
Ok, I agree that removing the whole block might not be the right solution but testing that -onion is empty isn't the correct condition neither. My problem with this line is it that the onion proxy address is hardcoded to 127.0.0.1 Imagine that someone sets or perhaps something less surprising and or more common: I guess that the intent of the onion proxy setting code block is for the case where someone would have provided -torcontrol and have omitted to provide -onion or -proxy. How about testing if it is set by calling GetProxy()? |
This is fixed in #15423. Feel free to review and/or test it. |
thx. I will take a look |
onion proxy is already initialized by AppInitMain() function in init.cpp
The removed code contains the assumption that the proxy is local.
If it has been initialized to be remote and configured by using the
-proxy option, the removed code was breaking the config.
Signed-off-by: Olivier Langlois [email protected]