Skip to content

Commit 6c7c27f

Browse files
committed
doc: use onion in proxy help and examples
`tor` was removed as a network name in #34031, but the proxy help and Tor examples still advertise it. Use canonical network names in the help and document `onion` with the removal reference.
1 parent fd65406 commit 6c7c27f

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎doc/tor.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ The following directions assume you have a Tor proxy running on port 9050. Many
1111

1212
- Tor removed v2 support beginning with version 0.4.6.
1313

14+
- Bitcoin Core 31.0 removed `tor` as a network name. Use `onion` instead,
15+
as in `-onlynet=onion` or `-proxy=addr:port=onion`
16+
([#34031](https://github.com/bitcoin/bitcoin/pull/34031)).
17+
The `-debug=tor` logging category is unaffected.
18+
1419
## How to see information about your Tor configuration via Bitcoin Core
1520

1621
There are several ways to see your local onion address in Bitcoin Core:
@@ -39,7 +44,7 @@ outgoing connections, but more is possible.
3944
as well. You need to use -noonion or -onion=0 to explicitly disable
4045
outbound access to onion services.
4146

42-
-proxy=ip[:port]=tor
47+
-proxy=ip[:port]=onion
4348
or
4449
-onion=ip[:port]
4550
Set the proxy server for reaching .onion addresses. You do not need to
@@ -51,7 +56,7 @@ outgoing connections, but more is possible.
5156
-proxy=addr:port=ipv4 or
5257
-proxy=addr:port=ipv6
5358
(last one if multiple options are given). It is not taken from
54-
-proxy=addr:port=tor or
59+
-proxy=addr:port=onion or
5560
-onion=addr:port.
5661
If no proxy for DNS requests is configured, then they will be done using
5762
the functions provided by the operating system, most likely resulting in

‎src/init.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ void SetupServerArgs(ArgsManager& argsman, bool can_listen_ipc)
614614
"Connect through SOCKS5 proxy, set -noproxy to disable. " +
615615
proxy_doc_for_unix_socket +
616616
"Could end in =network to set the proxy only for that network. " +
617-
"The network can be any of ipv4, ipv6, tor or cjdns. " +
617+
"The network can be any of " + Join(std::vector{NET_IPV4, NET_IPV6, NET_ONION, NET_CJDNS}, ", ", GetNetworkName) + ". " +
618618
"(default: disabled)",
619619
ArgsManager::ALLOW_ANY | ArgsManager::DISALLOW_ELISION,
620620
OptionsCategory::CONNECTION);

0 commit comments

Comments
 (0)