aboutsummaryrefslogtreecommitdiff
path: root/crates/arti/src/dns.rs
Commit message (Collapse)AuthorAgeFilesLines
* Bump to trust-dns-proto 0.23.0Nick Mathewson2023-09-051-4/+4
|
* Throughout: Use *_report!() macros for reporting Errors.Nick Mathewson2023-07-071-8/+5
| | | | | | | | | | | | | | | I identified the cases to replace by searching for the string `.report()`. There are a few that I didn't change: * A couple of cases that used anyhow::Error, * One case that reported two Errors. * Two cases in `tor_hsclient::err` that just did `error!("Bug: {}")`. I have also not audited the cases in `tor-hsclient` where we're using `tor_error::Report` manually. Nonetheless, closes #949.
* Use ErrorReport - run rustfmtIan Jackson2023-01-301-1/+5
| | | | Split off for ease of review and possible rebase.
* Apply safelog to DNS response serialisation errors, but report themIan Jackson2023-01-301-5/+11
| | | | | | With safe logging disabled, print the error too. With safe logging enabled, do not print the message or the error.
* Use ErrorReport/Report for errors in warn! in artiIan Jackson2023-01-301-3/+4
|
* arti: Adjust severity on per-socks-request log.Nick Mathewson2022-08-251-1/+3
| | | | | Also, note why we aren't hiding the addrs that we're listening on here.
* arti: Move most public APIs behind `experimental-api`.Nick Mathewson2022-08-111-1/+2
| | | | | | | | | | | | | | | | | The remaining unconditionally public APIs are those related to our configuration objects, and the main_main() API. The rationale for making main_main() public is to have an actual entry point. The rationale for making the config APIs public is: 1. We really do intend for others to be able to read our configuration files using this API. 2. The structure of our configuration files is already part of our interface. Closes #530.
* try to differentiate transient from nontransient errortrinity-1686a2022-06-081-2/+0
|
* return nodata instead of servfail in some instancestrinity-1686a2022-06-081-3/+13
|
* deduplicate dns requests based on transaction idtrinity-1686a2022-05-301-49/+139
|
* rename *_isolation_group to *_isolationtrinity-1686a2022-03-241-1/+1
|
* Alternative API for set_isolation_group().Nick Mathewson2022-03-171-1/+1
| | | | | | | | | | | | Instead of requiring a `Box<dyn Isolation>`, it now takes either a `Box<dyn Isolation>`, or an arbitrary `T` that implements `Isolation`. This API still allows the user to pass in a `Box<dyn Isolation>` if that's what they have, but it doesn't require them to Box the isolation on their own. Part of #414.
* Merge branch 'test-isolation' into 'main'Nick Mathewson2022-03-171-6/+32
|\ | | | | | | | | new api for isolation See merge request tpo/core/arti!377
| * add isolation to dns requeststrinity-1686a2022-03-161-6/+32
| |
* | Fix typoDimitris Apostolou2022-03-161-1/+1
|/
* make run_dns_resolver public and fix typotrinity-1686a2022-03-151-3/+2
|
* fix typos and minor issuestrinity-1686a2022-03-141-2/+5
|
* actually add DNS supporttrinity-1686a2022-03-141-4/+80
|
* add skeleton for DNS handlingtrinity-1686a2022-03-141-6/+88
|
* add udp to runtimetrinity-1686a2022-03-141-0/+21