mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
2d33d192fc
ClientUseIPv4 0 tells tor to avoid IPv4 client connections. ClientPreferIPv6DirPort 1 tells tor to prefer IPv6 directory connections. Refactor policy for IPv4/IPv6 preferences. Fix a bug where node->ipv6_preferred could become stale if ClientPreferIPv6ORPort was changed after the consensus was loaded. Update documentation, existing code, add unit tests.
10 lines
501 B
Plaintext
10 lines
501 B
Plaintext
o Minor feature (IPv6):
|
|
- Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
|
|
avoids using IPv4 for client OR and directory connections.
|
|
- Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
|
|
to 1, tor prefers IPv6 directory addresses.
|
|
- Try harder to fulfil IP version restrictions ClientUseIPv4 0 and
|
|
ClientUseIPv6 0; and the preferences ClientPreferIPv6ORPort and
|
|
ClientPreferIPv6DirPort.
|
|
Closes ticket 17840; patch by "teor".
|