Opened 4 years ago

Closed 3 years ago

#17834 closed enhancement (fixed)

Add ClientPreferIPv6DirPort

Reported by: teor Owned by: teor
Priority: Medium Milestone: Tor: 0.2.8.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: ipv6
Cc: Actual Points:
Parent ID: #17840 Points:
Reviewer: Sponsor:

Description

Add ClientPreferIPv6DirPort to express a preference for IPv6 directory connections over IPv4 directory connections.

Tor already has ClientPreferIPv6ORPort, which expresses a preference for IPv6 OR connections over IPv4 OR connections.

(ClientUseIPv6 allows the use of IPv6 connections, ClientPreferIPv6ORPort/ClientPreferIPv6DirPort are the tie-breakers if IPv4 and IPv6 are both equally likely.)

While we're doing this, let's warn on nonsensical situations like ClientPreferIPv6* 1 ClientUseIPv6 0. (Although ClientPreferIPv6* 0 ClientUseIPv6 1 should be an info or notice, as ClientPreferIPv6* 0 is the default.)

Child Tickets

Change History (2)

comment:1 Changed 4 years ago by teor

Owner: set to teor
Parent ID: #17811#17840
Status: newaccepted

This is done in #17840.
This ticket can close when #17840 is merged.

comment:2 Changed 3 years ago by teor

Resolution: fixed
Status: acceptedclosed

We resolved this in #17840 by introducing ClientPreferIPv6DirPort. Clients prefer IPv6 DirPorts when:

  • ClientUseIPv4 is 0, or
  • ClientUseIPv6 is 1 and ClientPreferIPv6DirPort is 1, or
  • they are a bridge client.

See my branch feature17840-v11-squashed in #17840.

Note: See TracTickets for help on using tickets.