| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
Instead of doing this when we construct the listeners, we can do it
in a separate method, to simplify the return type.
|
| |
|
|
| |
Part of #2301.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
This isn't the long-term solution to error reporting and proxies,
but it is a start that we can work from.
Closes #2304.
|
| | |
|
| |
|
|
|
|
| |
Fixes bug introduced in 0cc367b9fef37c0f7d7f04d54c4687b27ef251d0.
Without this fix, RPC's get_proxy_info command wouldn't work.
|
| |
|
|
|
| |
This allows applications to find out where arti is listening when
arti has been configured to listen with the port "auto".
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, the proxy and dns modules only had "be a proxy"
functions that ran forever. Now they have functions that bind to
listeners and return a separate "be a proxy" future that runs
forever.
This lets us simplify some kludges in subcommands::proxy. More
importantly, it will let us return the bound-to ports so that
subcommands::proxy can write them to disk.
This is a break in experimental-apis, which does not require a
semver change.
|
| | |
|
| | |
|
| |
|
|
| |
Assumes that 0.37.0 will be the next version number.
|
| | |
|
| |
|
|
| |
Part of prop368.
|
| | |
|
| |
|
|
|
|
|
|
| |
This change lets us avoid spawning extra tasks (due to one-direction
nature of copy_interactive), and avoid some lock contention (due to
use of AsyncReadExt::split).
Addresses part of #786.
|
| |\
| |
| |
| |
| |
| |
| | |
arti: Revise strings that implied that we were a SOCKS-only proxy.
Closes #2225
See merge request tpo/core/arti!3398
|
| | | |
|
| | |
| |
| |
| | |
Closes #2225
|
| | | |
|
| |/
|
|
|
|
|
| |
Apparently the http_connect refactoring made these no longer
trigger.
Closes #2226
|
| |
|
|
|
|
| |
We can't remove them all, since X-Tor-Stream-Isolation is recognized
by C-Tor. I've added a non-deprecated Tor-Stream-Isolation
that works indepenently.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
With his commit, our SOCKS ports now accept both SOCKS
and HTTP CONNECT requests, per proposal 365.
There are still some infelicities, marked with
"XXXX" or "TODO".
I've tested this with curl, though, and it works. :)
Typo-fixes-by: Gabriela Moldovan <[email protected]>
|
| |
|
|
|
| |
This will let us speak HTTP CONNECT as well; there is a stub
for initiating an http proxy.
|
| |
|
|
| |
This will let us implement bilingual HTTP proxies.
|
| |
|
|
| |
This is _all_ renaming and comment adjustments.
|
| |
|
|
|
|
|
|
|
| |
We want to abstract every part of this code that knows that it's
speaking SOCKS, so that we can in turn add a new proxy type.
Note that several methods and types here have names that are no
longer appropriate for their functionality. I'll revise those in a
later commit.
|
| |
|
|
|
| |
(I'm not sure why this wasn't already done, but let's do it as a
separate MR.)
|
| |
|
|
| |
I'm about to add another proxy type.
|
| | |
|
| |
|
|
|
| |
This does not constitute any kind of stable API promise.
But it might allow people to use our arti client code in novel ways.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
I'm not in love with this solution; the others just seem a bit ugly
too.
|
| |
|
|
|
|
|
|
|
|
|
| |
At least by default, we should have Error be private, and not expose
it as part of our APIs.
To keep functionality in `arti`, I had to add an `ExitTimeout` error
kind.
For interface consistency, I also re-exported ErrorKind and HasError
from `arti_client`.
|
| |
|
|
|
|
|
| |
Found via clippy::needless_borrow. In some cases I removed needless
`[..]` too. See also:
needless_borrow suggestion doesn't go far enough
https://github.com/rust-lang/rust-clippy/issues/8389
|
| |
|
|
|
| |
TorClient doesn't need to be wrapped in an Arc any longer, thanks
to other refactoring.
|
| |
|
|
| |
Placates rustfmt
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The docs even say this is about stream.
As @nickm writes in
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/252#note_2771289
we generally call end-to-end connections that are tunneled over Tor
"Streams" to distinguish them from everything else in the Tor
protocols that could possibly be called a "Connection".
That seems to apply here too.
|
| |
|
|
|
| |
This may save quite a bit of copying. The callees don't need to copy
the whole struct; they copy the bits they need.
|
| | |
|
| |
|
|
| |
Signed-off-by: Muhammad Falak R Wani <[email protected]>
|
| |
|
|
| |
Signed-off-by: Muhammad Falak R Wani <[email protected]>
|
| | |
|
| |
|
|
| |
These issues all have tickets, so can become TODOs.
|
| | |
|