Module proxied

Source
Expand description

Connect to relays via a proxy.

This code is here for two reasons:

  1. To connect via external pluggable transports (for which we use SOCKS to build our connections).
  2. To support users who are behind a firewall that requires them to use a SOCKS proxy to connect.

Currently only SOCKS proxies are supported.

Structs§

ExternalProxyPluginpt-client
An object that connects to a Tor bridge via an external pluggable transport that provides a proxy.

Enums§

Protocol
Information about what proxy protocol to use, and how to use it.
ProxyError
An error that occurs while negotiating a connection with a proxy.

Constants§

NO_ADDR 🔒
An address to use when told to connect to “no address.”

Functions§

connect_via_proxy 🔒
Open a connection to target via the proxy at proxy, using the protocol at protocol.
encode_settings 🔒 pt-client
Encode the PT settings from IT in a format that a pluggable transport can use.
settings_to_protocolpt-client
Transform a string into a representation that can be sent as SOCKS authentication.