Documentation ¶
Index ¶
- func Listen(network, address string) (net.Listener, error)
- func ListenContext(ctx context.Context, network, address string) (net.Listener, error)
- func NewHTTP(target socks5.Addr, source net.Addr, conn net.Conn, additions ...Addition) *context.ConnContext
- func NewHTTPS(request *http.Request, conn net.Conn, additions ...Addition) *context.ConnContext
- func NewInner(conn net.Conn, dst string, host string) *context.ConnContext
- func NewPacket(target socks5.Addr, packet C.UDPPacket, source C.Type, additions ...Addition) C.PacketAdapter
- func NewSocket(target socks5.Addr, conn net.Conn, source C.Type, additions ...Addition) *context.ConnContext
- func SetTfo(open bool)
- type Addition
- type PacketAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenContext ¶
func NewHTTP ¶
func NewHTTP(target socks5.Addr, source net.Addr, conn net.Conn, additions ...Addition) *context.ConnContext
NewHTTP receive normal http request and return HTTPContext
func NewPacket ¶
func NewPacket(target socks5.Addr, packet C.UDPPacket, source C.Type, additions ...Addition) C.PacketAdapter
NewPacket is PacketAdapter generator
Types ¶
type PacketAdapter ¶
PacketAdapter is a UDP Packet adapter for socks/redir/tun
func (*PacketAdapter) Metadata ¶
func (s *PacketAdapter) Metadata() *C.Metadata
Metadata returns destination metadata
Source Files ¶
Click to show internal directories.
Click to hide internal directories.