--- /dev/null
+ o Minor features:
+
+ - Add new configure option AuthDirPublishIPv6. Implements
+ enhancement #6406.
ports. When set to auto, Tor tries to find out if the authority
relay has IPv6 connectivity or not. (Default: auto)
+**AuthDirPublishIPv6** **0**|**1**::
+
+ Authoritative directories only. When set to 0, Tor will not
+ include IPv6 OR ports in votes. When set to 1, Tor will vote for
+ IPv6 OR ports. (Default: 0).
+
HIDDEN SERVICE OPTIONS
----------------------
V(AuthDirMaxServersPerAddr, UINT, "2"),
V(AuthDirMaxServersPerAuthAddr,UINT, "5"),
V(AuthDirHasIPv6Connectivity, AUTOBOOL, "auto"),
+ V(AuthDirPublishIPv6, BOOL, "0"),
VAR("AuthoritativeDirectory", BOOL, AuthoritativeDir, "0"),
V(AutomapHostsOnResolve, BOOL, "0"),
V(AutomapHostsSuffixes, CSV, ".onion,.exit"),
strlcpy(rs->nickname, ri->nickname, sizeof(rs->nickname));
rs->or_port = ri->or_port;
rs->dir_port = ri->dir_port;
- if (authdir_mode_bridge(options) &&
+ if (options->AuthDirPublishIPv6 == 1 &&
!tor_addr_is_null(&ri->ipv6_addr) &&
(options->AuthDirHasIPv6Connectivity == 0 ||
node->last_reachable6 >= now - REACHABLE_TIMEOUT)) {
- /* We're a bridge authority (we're not ready for IPv6 relays in
- the consensus quite yet). There's an IPv6 OR port and it's
- reachable (or we know that we're not on IPv6) so copy it to the
- routerstatus. */
+ /* We're configured for publishing IPv6 OR ports. There's an IPv6
+ OR port and it's reachable (or we know that we're not on IPv6)
+ so copy it to the routerstatus. */
tor_addr_copy(&rs->ipv6_addr, &ri->ipv6_addr);
rs->ipv6_orport = ri->ipv6_orport;
}
* number of servers per IP address shared
* with an authority. */
int AuthDirHasIPv6Connectivity; /**< Autoboolean: are we on IPv6? */
+ int AuthDirPublishIPv6; /**< Boolean: should we list IPv6 OR ports? */
/** If non-zero, always vote the Fast flag for any relay advertising
* this amount of capacity or more. */