Documentation
¶
Overview ¶
Package client exposes a socks5 proxy that uses obfs4 to communicate with the server, with an optional kcp wire transport.
Package client exposes a socks5 proxy that uses obfs4 to communicate with the server, with an optional kcp wire transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { SocksAddr string EventLogger EventLogger // contains filtered or unexported fields }
type EventLogger ¶
type HopClient ¶
type HopClient struct { ProxyAddr string EventLogger EventLogger // contains filtered or unexported fields }
func NewFFIHopClient ¶
NewFFIHopClient creates a new Hopping PT client This function is exposed to the JNI and since it's not allowed to pass objects that contain slices (other than byte slices) over the JNI we have to pass a json formatted string and convert it to a HoppingConfig struct for further processing
func NewHopClient ¶
func NewHopClient(ctx context.Context, stop context.CancelFunc, config HoppingConfig) *HopClient
type HoppingConfig ¶
type HoppingConfig struct { KCP bool `json:"kcp"` ProxyAddr string `json:"proxy_addr"` Remotes []string `json:"remotes"` Certs []string `json:"certs"` PortSeed int64 `json:"port_seed"` PortCount uint `json:"port_count"` MinHopSeconds uint `json:"min_hop_seconds"` HopJitter uint `json:"hop_jitter"` }
type Obfs4Config ¶
func (*Obfs4Config) String ¶
func (oc *Obfs4Config) String() string
Click to show internal directories.
Click to hide internal directories.