Documentation ¶
Index ¶
- func AutoTransport(conn net.Conn) error
- func AutoTransportV2ray(conn net.Conn) error
- func HttpTransport(conn net.Conn) error
- func Init(cfg *v2rayConfig) error
- func NewV2rayConfig(opts ...ConfigOpt) *v2rayConfig
- func Socks5Check(conn net.Conn) (net.Conn, error)
- func Socks5Transport(conn net.Conn, check bool) error
- func TorTransport(conn net.Conn) error
- func UnWrapper()
- func V2rayTransport(conn net.Conn, proto string) error
- type ConfigOpt
- type HttpTransfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoTransportV2ray ¶
func HttpTransport ¶
func NewV2rayConfig ¶
func NewV2rayConfig(opts ...ConfigOpt) *v2rayConfig
func TorTransport ¶
Types ¶
type ConfigOpt ¶
type ConfigOpt func(config *v2rayConfig)
func WithAuthInfo ¶
func WithClientMod ¶
func WithClientMod() ConfigOpt
func WithNetAddr ¶
func WithServerMod ¶
func WithServerMod() ConfigOpt
func WithTunnelType ¶
func WithTunnelType(proto string, tp enum.TunnelType) ConfigOpt
type HttpTransfer ¶
type HttpTransfer struct { }
Click to show internal directories.
Click to hide internal directories.