summaryrefslogtreecommitdiff
path: root/tor-client
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove use of unwrap() in tor-client.Nick Mathewson2021-03-042-7/+15
|
* Port to work with tokio or async-std.Nick Mathewson2021-03-022-6/+18
| | | | | | | | | | | | | | | | | | This is fairly ugly and I think I'll need to mess around with the feature configuration a while until we get something that's pleasant to develop with. This still seems like a good idea, though, since we _will_ need to be executor-agnostic in the end, or we'll have no way to handle wasm or embedded environments. Later down the road, we'll probably want to use futures::Executor or futures::Spawn more than having global entry points in tor_rtcompat. That would probably make our feature story simpler. Tokio is the default now, since tokio seems to be more heavily used for performance-critical stuff. This patch breaks tests; the next one will fix them, albeit questionably.
* Move .onion check into TorClient.Nick Mathewson2021-02-252-7/+5
|
* Clean-ups for documentations and lints in tor-clientNick Mathewson2021-02-252-10/+24
|
* Use a ConnectPref type for TorClient::connect, simplify APIs a bit, doc some.Nick Mathewson2021-02-253-23/+90
|
* Restore code in proxy.rs so that socks timeout errors work againNick Mathewson2021-02-252-15/+17
| | | | | This isn't pretty, since it now has to use anyhow::downcast_ref(). I've noted a TODO about maybe not using anyhow::Error for this case.
* Start refactoring the tor-client crate.Nick Mathewson2021-02-254-199/+252
| | | | | This commit splits the proxy and client code into a proper module, and keeps a stripped down version of the main.rs file.
* Update to latest futures, once_cellNick Mathewson2021-02-231-1/+1
|
* Update some dependencies.Nick Mathewson2021-02-191-1/+1
|
* Make first-level directory retry logic configurable.Nick Mathewson2021-02-171-5/+16
|
* Make our initial bootstrap retry schedule configurarableNick Mathewson2021-02-172-1/+17
|
* Add support to override network parameters in the configuration.Nick Mathewson2021-02-161-0/+8
|
* Apply "deny_unknown_fields" to configuration types.Nick Mathewson2021-02-121-0/+2
|
* Implement storage-directory configuration.Nick Mathewson2021-02-122-0/+28
| | | | | | | 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.
* Add comments to default config filesNick Mathewson2021-02-113-5/+14
|
* Make authorities and fallbacks configurable.Nick Mathewson2021-02-113-14/+782
| | | | | | | | | | 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.
* Merge branch 'main' of gitlab.torproject.org:/tpo/core/artiNick Mathewson2021-02-101-1/+1
|\
| * upgrade a few dependenciesNick Mathewson2021-02-101-1/+1
| |
* | Add a test to make sure defaults are parseable.Nick Mathewson2021-02-101-0/+19
|/
* Move defaults into a toml file.Nick Mathewson2021-02-102-4/+15
|
* Send back the right SOCKS reply in case of a timeoutGeorge Kadianakis2021-02-061-1/+15
|
* Whoops, we were using 9150 for now.Nick Mathewson2021-02-021-1/+1
|
* Initial support for configuration from file and/or command-line.Nick Mathewson2021-02-022-14/+52
|
* Rename client-demo to tor-client.Nick Mathewson2021-02-022-0/+256