Commit Graph

15 Commits

Author SHA1 Message Date
Nick Mathewson afdcd69e03 Make first-level directory retry logic configurable. 2021-02-17 11:55:39 -05:00
Nick Mathewson d8d2c0f79c Make our initial bootstrap retry schedule configurarable 2021-02-17 11:25:57 -05:00
Nick Mathewson ddf994acc5 Add support to override network parameters in the configuration. 2021-02-16 13:29:46 -05:00
Nick Mathewson 94901ec355 Apply "deny_unknown_fields" to configuration types. 2021-02-12 11:26:00 -05:00
Nick Mathewson d8c1e7f0cf Implement storage-directory configuration.
This affects the cache_dir and the as-yet-unused state_dir.  It uses
the shellexpand and directories crates so that the default values
can be constant strings that use variables to refer to the right
default locations.
2021-02-12 10:54:24 -05:00
Nick Mathewson 32c857f71a Add comments to default config files 2021-02-11 14:09:39 -05:00
Nick Mathewson aeb410b915 Make authorities and fallbacks configurable.
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.
2021-02-11 13:08:46 -05:00
Nick Mathewson 59fb158cc2 Merge branch 'main' of gitlab.torproject.org:/tpo/core/arti 2021-02-10 19:25:30 -05:00
Nick Mathewson e1c3f550d8 upgrade a few dependencies 2021-02-10 18:23:38 -05:00
Nick Mathewson bf64b335e1 Add a test to make sure defaults are parseable. 2021-02-10 15:00:21 -05:00
Nick Mathewson c35f72082d Move defaults into a toml file. 2021-02-10 14:33:55 -05:00
George Kadianakis bd4169e7d2 Send back the right SOCKS reply in case of a timeout 2021-02-06 00:11:37 +02:00
Nick Mathewson b3ae88cf70 Whoops, we were using 9150 for now. 2021-02-02 13:41:20 -05:00
Nick Mathewson 66ffa44512 Initial support for configuration from file and/or command-line. 2021-02-02 13:26:02 -05:00
Nick Mathewson 6f28f7dea5 Rename client-demo to tor-client. 2021-02-02 09:27:38 -05:00