summaryrefslogtreecommitdiff
path: root/crates/tor-guardmgr/src/err.rs
Commit message (Collapse)AuthorAgeFilesLines
* GuardMgr: remove disallowed addresses from returned FirstHops.Nick Mathewson2022-06-171-1/+9
| | | | | | | | Since a guard can have a bunch of addresses, and the guard is permitted if any one of those addresses is permitted, then we might decide to use a guard with some non-permitted addresses. Thus, we need to filter those addresses before returning the view of the guard as a FirstHop.
* guardmgr: implement HasRetryTime.Nick Mathewson2022-04-041-0/+24
|
* Turn FallbackList into a real type, and store one in GuardMgr.Nick Mathewson2022-03-301-2/+13
| | | | | | | | | | | | | | The guard manager is responsible for handing out the first hops of tor circuits, keeping track of their successes and failures, and remembering their states. Given that, it makes sense to store this information here. It is not yet used; I'll be fixing that in upcoming commits. Arguably, this information no longer belongs in the directory manager: I've added a todo about moving it. This commit will break compilation on its own in a couple of places; subsequent commits will fix it up.
* guardmgr: move error types into new err.rs module.Nick Mathewson2022-03-301-0/+75
This is more in keeping with the rest of our code.