mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 15:08:38 +00:00
net: fix startup failures from stale Tor examples #36177
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36177
Loading…
Reference in a new issue
No description provided.
Delete branch "l0rinc/proxy-network-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: #34031 removed
toras a network name, but the-proxyhelp and Tor documentation still advertise it, and following those examples fails at startup.The proxy option also maintains its own network-name mapping while
-onlynetandgetnodeaddressesuse the shared parser.Fix: Reuse the shared parser and canonical network names for
-proxy, and documentonionconsistently. Unsupported network names are now echoed as supplied, matching the other interfaces, while accepted names remain case-insensitive.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, 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.
Concept ACK
Built and ran
feature_proxy.pyandrpc_net.py, and checked against the base that the refactor commit keeps the same accepted names and the same per-network proxies.This reads as if
onionwere new in 31.0, but v30.0 already acceptedtorandonionfor-proxy(ca5781e23a). Naming Core also keeps this 31.0 apart from the Tor 0.4.6 above. Something like this?I found this pre-existing coverage gap while reviewing the refactor. Keeping the name proxy when clearing the IPv4 proxy still passes
feature_proxy.py. Could we add this case, better placed next to the CJDNS removal below?nit:
OnIoNisn't a fourth network here, it's the same one covering case-insensitive matching, and the comment above still describes only the three. Worth widening it?Thanks @jeanpablojp, rebased, added new test, updated doc and removed redundant code comment
Simplified similarly
While it's not strictly related, we do need the coverage in this area - added the test and you as coauthor
removed the whole comment instead
Almost ACK
b960b1e3e9, exceptexample.com:8333It seems to me that this will actually attempt to open a connection to
example.com:8333. That would be undesirable, see https://github.com/bitcoin/bitcoin/pull/31349.To avoid that we usually provide a bogus proxy setting, like
127.0.0.1on port1. However here the idea is to explicitly go directly, without a proxy. So, to avoid non-localhost traffic, what about using e.g.127.8.3.3:3instead ofexample.com:8333?Base:
7988380da987c0b860885853ace8149b84ac2ee8Head:
6c7c27f615a5b74e0aa921b8f103bf468a510aacNo verified findings are available from this partial review.
Review coverage was incomplete. The adversarial review had incomplete evidence.
Full review report
-dns=0prevents the connections toexample.com:8333yes, we set
-dns=0explicitly ingithub.com/bitcoin/bitcoin@b960b1e3e9/test/functional/feature_proxy.py (L493). Do you still think we need to change anything here?ACK
b960b1e3e9Show Signature
vasild's public key is on openpgp.org
Given
-dns=0this is "safe". Still, using an address from127.0.0.0/8with some bogus port seems more direct and robust to me, but definitely not a blocker anymore (initially I didn't realize-dns=0would stop that). Up to you.I think it would be better just just avoid "real" domains entirely, rather than rely on other settings.
Valid point, rebased and used https://example.invalid instead, thanks for the feedback.
ACK
6c7c27f615Well, if
-dns=0is removed, thenexample.invalid:8333would still leak stuff. It will not end up opening TCP connections to some real host on the internet, but would ask your DNS (usually hosted by your ISP) to resolveexample.invalid.ACK
6c7c27f615Show Signature
vasild's public key is on openpgp.org
What is the purpose of this additional test?
You don't think that's useful?
Mmh, I thought it might be redundant with the ParseNetwork test, but I guess it is fine to show that this behaviour is unchanged here.
ACK
6c7c27f615I believe this breaks
feature_proxy.py:Backported to
32.xin #36596.Backported to
31.xin #36319.ralph referenced this pull request2026-10-22 12:14:19 +00:00
ralph referenced this pull request2026-10-22 13:10:20 +00:00