arti-client hs: connect_to_onion_services: default to true

This should be enabled by default.  There's still no setter for not,
nor is it honoured - those are separate TODOs.
This commit is contained in:
Ian Jackson 2023-06-16 12:54:59 +01:00
parent ce72588322
commit 40dae63b65
1 changed files with 5 additions and 2 deletions

View File

@ -198,7 +198,9 @@ pub enum DormantMode {
}
/// Preferences for how to route a stream over the Tor network.
#[derive(Debug, Default, Clone)]
#[derive(Debug, Clone)]
#[derive(Educe)]
#[educe(Default)]
pub struct StreamPrefs {
/// What kind of IPv6/IPv4 we'd prefer, and how strongly.
ip_ver_pref: IpVersionPreference,
@ -209,7 +211,8 @@ pub struct StreamPrefs {
/// Whether to try to make connections to onion services.
#[cfg(feature = "onion-service-client")]
#[allow(dead_code)]
connect_to_onion_services: bool, // TODO hs: this should default to "true".
#[educe(Default(true))]
connect_to_onion_services: bool,
}
/// Record of how we are isolating connections