Skip to main content

Crate trojan_client

Crate trojan_client 

Source
Expand description

Trojan client with SOCKS5 proxy.

This crate provides a local SOCKS5 proxy that forwards connections through the Trojan protocol over TLS to a remote trojan server.

Re-exports§

pub use cli::ClientArgs;
pub use config::ClientConfig;
pub use config::load_client_config;

Modules§

cli
CLI module for trojan-client.
config
Client configuration.
socks5
SOCKS5 protocol implementation.

Structs§

ClientState
Shared client state for establishing outbound connections.

Enums§

ClientError
Errors that can occur in the trojan client.

Functions§

run
Run the trojan client with the given configuration.