transfer

package
v0.0.0-...-b532d83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoTransport

func AutoTransport(conn net.Conn) error

AutoTransport 自适应解析 http / socks

func AutoTransportV2ray

func AutoTransportV2ray(conn net.Conn) error

func HttpTransport

func HttpTransport(conn net.Conn) error

func Init

func Init(cfg *v2rayConfig) error

func NewV2rayConfig

func NewV2rayConfig(opts ...ConfigOpt) *v2rayConfig

func Socks5Check

func Socks5Check(conn net.Conn) (net.Conn, error)

func Socks5Transport

func Socks5Transport(conn net.Conn, check bool) error

func TorTransport

func TorTransport(conn net.Conn) error

func UnWrapper

func UnWrapper()

func V2rayTransport

func V2rayTransport(conn net.Conn, proto string) error

V2rayTransport v2ray 相关协议支持: vmess / vless / shadowsock

Types

type ConfigOpt

type ConfigOpt func(config *v2rayConfig)

func WithAuthInfo

func WithAuthInfo(id, crypt, pass string) ConfigOpt

func WithClientMod

func WithClientMod() ConfigOpt

func WithExtra

func WithExtra(tor, tls bool) ConfigOpt

func WithNetAddr

func WithNetAddr(addr string, port uint32) ConfigOpt

func WithServerMod

func WithServerMod() ConfigOpt

func WithTunnelType

func WithTunnelType(proto string, tp enum.TunnelType) ConfigOpt

type HttpTransfer

type HttpTransfer struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL