summaryrefslogtreecommitdiff
path: root/crates/arti/src
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to hickory-proto 0.26.1Nick Mathewson2026-05-021-17/+11
| | | | | | | | | | | | | | This fixes https://rustsec.org/advisories/RUSTSEC-2026-0120.html and https://rustsec.org/advisories/RUSTSEC-2026-0119.html Neither of these is relevant for Arti, but we may as well upgrade. This change required some code changes, since the upgrade from 0.25 changed some of the old APIs. Closes #2517.
* implement syslog supportAndrew Kloet2026-04-283-4/+55
|
* Log socks isolationJim Newsome2026-04-081-0/+1
|
* Merge branch 'rustls-defaults' into 'main'Nick Mathewson2026-04-081-7/+23
|\ | | | | | | | | | | | | Allow compile-time selection of rustls CryptoProvider; use aws-lc-rs by default. Closes #2448 See merge request tpo/core/arti!3857
| * arti: Allow choice of CryptoProvider; use aws-lc-rs by default.Nick Mathewson2026-04-081-7/+23
| |
* | Merge branch 'feat/protocol-warnings' into 'main'Nick Mathewson2026-04-083-0/+25
|\ \ | | | | | | | | | | | | tor-error/arti: add logging.protocol_warnings for TorProtocolViolation See merge request tpo/core/arti!3805
| * | arti: set_protocol_warning_mode to Warn or Off in setup_loggingmoumenalaoui2026-04-081-5/+6
| | |
| * | arti: add protocol_warnings config and wire setup_loggingmoumenalaoui2026-03-273-0/+24
| |/
* | Merge branch 'fix-help-msg' into 'main'Nick Mathewson2026-04-081-4/+6
|\ \ | | | | | | | | | | | | | | | | | | arti: Fix arti -h Closes #2038 See merge request tpo/core/arti!3860
| * | arti: Fix help message display orderhjrgrn2026-04-081-4/+6
| |/ | | | | | | | | | | | | | | Call `clap_app`'s metadata methods after `augment_subcommands`. If `about` is set before `augment_subcommands`, the subcommand enums' doc comment overrides it. Now, all metadata (e.g. about, version) is set after augmentation for consistency and correct help output.
* | arti: fix clippy warnings in `report_proxy_error()`Steven Engler2026-03-301-3/+5
| |
* | arti: use report macros in `report_proxy_error()`Steven Engler2026-03-301-5/+6
| |
* | arti: don't warn for `NotConnected` errorsSteven Engler2026-03-301-0/+1
|/
* Merge branch 'webtime-v3' into 'main'Nick Mathewson2026-03-261-5/+3
|\ | | | | | | | | | | | | Port to use web-time for compatibility with wasm32 Closes #2356 See merge request tpo/core/arti!3820
| * arti: Port to web-time-compat.Nick Mathewson2026-03-261-5/+3
| |
* | Merge branch 'http-connect-wrapup' into 'main'Nick Mathewson2026-03-266-25/+99
|\ \ | |/ |/| | | | | | | | | arti: Add option and documentation for http connect, then mark it stable. Closes #2409 See merge request tpo/core/arti!3811
| * Feature-gate the proxy.enable_http_connect optionNick Mathewson2026-03-261-1/+14
| |
| * arti: Add an option to disable http_connect.Nick Mathewson2026-03-256-25/+86
| | | | | | | | | | | | | | | | | | This option affects all socks listeners, because: - We don't have a convenient way to associate an option with each port. - The main purpose of having this option is as a switch in case we discover a major problem with this code.
* | arti: Mostly make clippy happy for wasm with --no-default-features.Nick Mathewson2026-03-252-0/+2
|/ | | | | (With no-default-features there is no runtime, and that still causes a compiler error.)
* Fix typosTobias Stoeckmann2026-03-242-2/+2
| | | | Typos found with codespell
* tor-chanmgr: add base64ct dependency and docsNihal2026-03-181-7/+16
|
* Merge branch 'typos' into 'main'opara2026-03-163-3/+3
|\ | | | | | | | | Fix various typos See merge request tpo/core/arti!3781
| * Fix word duplicate typosTobias Stoeckmann2026-03-153-3/+3
| |
* | rpc: Add support for set_dormant.Nick Mathewson2026-03-163-7/+60
| | | | | | | | | | This is not exactly the most _urgent_ superuser functionality, but it is probably the easiest to implement.
* | rpc: Implement superuser mode.Nick Mathewson2026-03-164-7/+50
| | | | | | | | | | When connection point provides superuser support, provide a (currently inert) RpcSuperuser object to the RPC session.
* | rpc: Move responsibility for Session creation to ConnectionNick Mathewson2026-03-161-3/+10
|/ | | | | The Connection will know the options that the listener was created with, as opposed to RpcMgr, which is the same for every listener.
* arti: Fix some visibility-based compilation errors.Nick Mathewson2026-02-242-6/+10
|
* arti: Migrate top-level configuration to dd(TorConfig).Nick Mathewson2026-02-243-143/+82
|
* arti: Port rpc configuration to dd(TorConfig).Nick Mathewson2026-02-243-74/+74
|
* arti: Port logging config to dd(TorConfig)Nick Mathewson2026-02-241-130/+69
|
* arti: Fix up proxy launching documentationNick Mathewson2026-02-192-3/+5
|
* arti: Extract responsibility for port listing.Nick Mathewson2026-02-196-98/+108
| | | | | Instead of doing this when we construct the listeners, we can do it in a separate method, to simplify the return type.
* arti: Refactor socks proxy launcher function.Nick Mathewson2026-02-192-16/+40
| | | | Part of #2301.
* arti: Refactor dns proxy launcher function.Nick Mathewson2026-02-192-9/+34
| | | | Part of #2301.
* Merge branch 'mr_3616_rebased' into 'main'Nick Mathewson2026-02-162-0/+42
|\ | | | | | | | | | | | | Mr 3616 rebased Closes #1800 See merge request tpo/core/arti!3681
| * docs: add outbound proxy implementation notesNihal2026-02-161-0/+21
| |
| * docs: add outbound proxyNihal2026-02-161-0/+21
| |
* | Allow clippy::collapsible_if to triggerGabriela Moldovan2026-02-162-0/+2
|/ | | | | | | | | `clippy::collapsible_if` started triggering after bumping the MSRV to 1.88. Since this triggers from a lot of places, and since there even are a couple of instances where we explicitly allow `clippy::collapsible_ifs`, I've opened #2342 for deciding what to do about it.
* arti: Use ErrorSources in extract_proto_errRobert Bartlensky2026-02-141-12/+5
|
* Don't log Circuit Closed errors as warningsrobertb2026-02-051-1/+6
|
* arti: improve error message for invalid socks/dns portSteven Engler2026-02-022-10/+6
| | | | | | | | | | | Uses the standard clap error messages, for example: ```text $ cargo run -p arti -- proxy -p 123a error: invalid value '123a' for '-p <PORT>': invalid digit found in string For more information, try '--help'. ```
* arti: improve help text for `-p` and `-d`Steven Engler2026-02-021-2/+2
|
* arti: remove `resolve_listen_port!` macroSteven Engler2026-01-291-35/+0
| | | | | | I'm undecided whether we want to keep `resolve_alternative_specs` around, but it seems possible/likely that we'll want it in the future, so I think we can keep it.
* arti: remove deprecated `proxy.dns_port` config optionSteven Engler2026-01-293-20/+4
|
* arti: remove deprecated `proxy.socks_port` config optionSteven Engler2026-01-293-21/+9
|
* arti: small changes to socks/dns listen config testsSteven Engler2026-01-291-16/+13
|
* arti: relax '_listen'/'_port' config compat testsSteven Engler2026-01-291-40/+2
| | | | | This is in preparation for removing the `listen_port` and `dns_port` config options.
* arti: reword+reformat warning messageSteven Engler2026-01-291-1/+4
|
* arti: Do not panic when invalid ports are given as arguments to proxyNiel Duysters2026-01-301-2/+8
| | | | Use anyhow::Context to wrap error in useful message.
* arti: Pass the request by referenceGabriela Moldovan2026-01-271-2/+2
| | | | This resolves a newly-triggered lint.