summaryrefslogtreecommitdiff
path: root/crates/tor-netdir/src/details.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'flags-url' into 'main'Clara Engler2026-03-121-0/+3
|\ | | | | | | | | tor-netdir: Add spec link to flag descriptions See merge request tpo/core/arti!3768
| * tor-netdir: Add spec link to flag descriptionsIan Jackson2026-03-111-0/+3
| |
* | tor-netdir: Simply exit documentationClara Engler2026-03-091-7/+0
| | | | | | | | No need to over-engineer this, let's keep it simple.
* | tor-netdir: Add is_flagged_exit() to RelayDetailsClara Engler2026-03-051-0/+11
|/ | | | | | | | | | | This commit adds a method called `is_flagged_exit` to `RelayDetails` in order to check whether the node is considered to be usable as an exit or not. In the Tor VPN app, we need this feature for generating a list of exit relays (per country). Right now, we do this in an incorrect way by only checking on whether port 443 is in the exit policy, which is not a sufficient criteria.
* tor-netdoc: Combine ConsensusRouterStatus and GenericRouterStatusIan Jackson2025-08-261-1/+1
| | | | Now we only need one type.
* netdir, relay-selection: require Fast and Stable for rendpoints.Nick Mathewson2025-05-201-1/+3
| | | | | | Since we don't know what kind of traffic we'll use a rendezvous point for, we don't want to use it if it isn't "Fast" (reasonably high bw) and "Stable" (unlikely to crash soon).
* hs: Prevent a client from using a `MiddleOnly` relay for onion servicesNeel Chauhan2025-05-201-1/+7
| | | | | | > The actual impact of this patch is to prevent usage of MiddleOnly > relays as Introduction Points. The Rendezvous Point logic isn't > hooked up yet - nick
* Use named subprotocol versions throughout arti.Nick Mathewson2025-03-121-2/+2
|
* netdir: Consider RelayFamilyIds based on family rulesNick Mathewson2025-02-251-3/+19
| | | | | | | This implements the client side of proposal 321. It's a breaking change in netdir, since in_same_family now takes an extra argument.
* Fix some rustdoc links and copypaste errors in tor-netdir.Nick Mathewson2024-04-041-3/+7
|
* tor-netdir: Abolish Relay::has_same_relay_idsIan Jackson2024-04-031-1/+2
| | | | This was an open-coded specialisation. Remove the one call site.
* Comment fixes in RelayDetails refactor.Ian Jackson2024-04-031-2/+4
|
* Move rs_is_dircache to details.rsNick Mathewson2024-03-281-3/+9
|
* Rename `Relay::same_relay` and make it private.Nick Mathewson2024-03-281-1/+1
| | | | | Everybody outside of tor-netdir should use HasRelayIds::same_relay_ids, whose intent is clearer.
* Remove all *Relay is_flagged_guard methods.Nick Mathewson2024-03-281-23/+1
| | | | These were only used for testing.
* Move most functions from *Relay to *RelayDetailsNick Mathewson2024-03-281-22/+21
| | | | | | | | In *RelayDetails, this is just a matter of changing a bunch of `self`s to `self.0`. Additionally, I've added temporary stub functions to delegate to the new functions.
* Relocate declarations of *Relay methods to details.rsNick Mathewson2024-03-281-0/+140
| | | | This is 99% code movement.
* Add low_level_details to {Unchecked,}Relay.Nick Mathewson2024-03-271-0/+47
I'm going to use this wrapper type to hide checks that should mostly not be used without careful thinking. There are also comments here explaining when you'd want to use these types, and when you shouldn't. Part of #504.