| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The `PtTarget` type and its contents (`TransportName`,
`PtTargetAddr`, `PtSettings`) are now unconditionally compiled and
exposed. This will allow us to serialize and deserialize them in
our guard-state files even when we have been built without explicit
PT support.
The `pt-client` feature controls whether `TransportName` is a
variant of `TransportId`, and whether `PtTarget` is a variant of
`ChanMethod`: this in turn means that we'll still have simpler
binary code and smaller structures when we're building without PT
support (which is what we wanted when we initially made these types
conditional).
|
| | |
|
| | |
|
| |
|
|
|
|
| |
* Get `TransportId`
* Get the target address (of any type)
* Ask, "is this a direct connection"?
|
| |
|
|
|
|
|
| |
Now each `ChanTarget` has at most one `ChannelMethod`, and only
`Direct` `ChannelMethods` can have multiple addresses.
Closes #600.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
This is not perfect but it at least ensures that our own parsing and
printing code works correctly with all the values we accept.
|
| |
|
|
|
|
| |
It has its own error type PtTargetInvalidSetting.
In check_doc_features, adjust suppression to new code.
|
| |
|
|
|
| |
This is going to appear in config files etc. We don't want the user
to have to type "<none>" in a bridge line.
|
| | |
|
| |
|
|
| |
I wanted this for testing. I think it's reasonable to promise this.
|
| |
|
|
|
|
|
|
| |
Make PtTargetSettings be Default.
No longer wrap it in Arc. We want to be able to update it here during
construction. If we want to save memory with copies of the same
bridge line, we should do this for the whole Bridge I think.
|
| |
|
|
| |
https://gitlab.torproject.org/tpo/core/torspec/-/merge_requests/91
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
This seems a minimal API for such a thing.
|
| |
|
|
| |
This repetition was getting repetitive.
|
| |
|
|
|
| |
The config parsing wants this. Also there are some anomalies in the
types here that ought to be tidied up.
|
| | |
|
| | |
|
| |
|
|
|
| |
This clarifies that the types apply to pluggable transports only,
and not (typically) to the default plain-old-TCP transport.
|
| | |
|
| |
|
|
|
| |
I've tried to name and structure these for consistency, and
comment reasonably well. We'll still probably want to make changes.
|
| |
|
|
|
|
| |
As with `TransportId`, this type only gets complicated when
`pt-client` is enabled: it's meant to stay simple for relays and
non-PT-using clients.
|
| |
|