Documentation ¶
Overview ¶
Package client exposes a 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 { ProxyAddr string EventLogger EventLogger // contains filtered or unexported fields }
func NewClient ¶
func NewFFIClient ¶ added in v1.0.0
NewFFIClient creates a new 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 Config struct for further processing
type Config ¶
type Config struct { ProxyAddr string `json:"proxy_addr"` HoppingConfig HoppingConfig `json:"hopping_config"` KCPConfig obfsvpn.KCPConfig `json:"kcp_config"` QUICConfig obfsvpn.QUICConfig `json:"quic_config"` RemoteIP string `json:"remote_ip"` RemotePort string `json:"remote_port"` Obfs4Cert string `json:"obfs4_cert"` }
type EventLogger ¶
type HoppingConfig ¶
type Obfs4Config ¶
func (*Obfs4Config) String ¶
func (oc *Obfs4Config) String() string
Click to show internal directories.
Click to hide internal directories.