Documentation ¶
Index ¶
- func NewHTTP(target socks5.Addr, sourceConn net.Conn, conn net.Conn, ctx context2.Context) *context.ConnContext
- func NewHTTPS(request *http.Request, conn net.Conn) *context.ConnContext
- func NewSocket(target socks5.Addr, conn net.Conn, source C.Type, ctx context2.Context) *context.ConnContext
- type PacketAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTP ¶
func NewHTTP(target socks5.Addr, sourceConn net.Conn, conn net.Conn, ctx context2.Context) *context.ConnContext
NewHTTP receive normal http request and return HTTPContext
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
Click to show internal directories.
Click to hide internal directories.