summaryrefslogtreecommitdiff
path: root/tor-dirmgr/src/config.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use the "typos" tool to fix some spellingNick Mathewson2021-05-261-1/+1
|
* Revert change to type of NetParams value.Nick Mathewson2021-05-251-4/+4
| | | | | This truly is an i32, not a strings: it is a specified requirement in parsing consensus documents.
* Use macros and types to improve handling of Netdir parameters.Nick Mathewson2021-05-251-4/+4
| | | | (Squashed from typed-netdir-params)
* Fix some rustdoc warningsNick Mathewson2021-05-211-1/+1
|
* Consistency, renaming, and testing for dirmgrconfigNick Mathewson2021-05-141-22/+133
|
* Move override_net_params into DirMgrConfig.Nick Mathewson2021-05-141-19/+26
|
* Rename NetDirConfig to DirMgrConfig.Nick Mathewson2021-05-141-14/+14
|
* Add builders for remaining config types in tor-dirmgr.Nick Mathewson2021-05-141-9/+92
|
* WIP: more builders.Nick Mathewson2021-05-131-1/+71
|
* Add builders for authority and fallback objects.Nick Mathewson2021-05-101-13/+46
|
* Fix a comment typo and needless mutNick Mathewson2021-05-101-2/+2
|
* Remove more pieces of unused legacy storage code.Nick Mathewson2021-05-101-44/+0
|
* Make reasonable set of default fallback directoriesNick Mathewson2021-03-301-4/+42
|
* Give the authorities value a reasonable default.Nick Mathewson2021-03-301-1/+12
|
* Add a NetDirConfig::use_default_cache_path() function.Nick Mathewson2021-03-301-0/+14
|
* Declare a better default for DownloadScheduleConfig.Nick Mathewson2021-03-301-3/+24
|
* DirMgr: cooperative multiprocess support.Nick Mathewson2021-03-291-2/+4
| | | | | | | | | | | | | | A directory manager can now launch or run in read-only or read-write mode, depending on whether it manages to acquire a lock on the filesystem. In read-write mode, it bootstraps and stores data into the database as usual. In read-only mode, it assumes that another process will be updating the database, and so it only loads it periodically, looking for new information. However, it also tries to acquire the lock itself, so it can enter read-write mode.
* Avoid unwrap() in dirmgrNick Mathewson2021-03-041-9/+15
|
* Make first-level directory retry logic configurable.Nick Mathewson2021-02-171-2/+38
|
* Make our initial bootstrap retry schedule configurarableNick Mathewson2021-02-171-0/+38
|
* tor-dirmgr: simplify config.rs a bit.Nick Mathewson2021-02-161-52/+14
|
* Add support to override network parameters in the configuration.Nick Mathewson2021-02-161-0/+22
|
* Apply "deny_unknown_fields" to configuration types.Nick Mathewson2021-02-121-0/+1
|
* Remove fallback to .arti/cache for cache directoryNick Mathewson2021-02-121-5/+1
|
* Make authorities and fallbacks configurable.Nick Mathewson2021-02-111-151/+37
| | | | | | | | | | This commit adds configuration options for these values, with the right defaults, and uses those options instead of built-in functions to set them. We also remove the function to extract information from chutney directories: now that arti is configurable, it can be chutney's job to make its own network configurations.
* Fix a logic bug in the --chutney-dir option.Nick Mathewson2020-12-071-4/+6
| | | | | | | It was recording the dirport for each chutney authority as though it were an orport. That obviously won't work. Closes arti#45.
* Make legacy-store code disabled by default.Nick Mathewson2020-11-241-2/+3
| | | | In the long run we might not want it at all.
* Turn client-demo into a mostly-good client.Nick Mathewson2020-11-241-2/+5
|
* Move a few more responsibilities into NetDirConfig.Nick Mathewson2020-11-201-8/+32
| | | | Also start a DirMgr type.
* Move storage and config logic from netdir to dirmgr.Nick Mathewson2020-11-201-0/+271