Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTP ¶
func NewHTTP(target socks5.Addr, source net.Addr, originTarget net.Addr, conn net.Conn) *context.ConnContext
NewHTTP receive normal http request and return HTTPContext
Types ¶
type PacketAdapter ¶
PacketAdapter is a UDP Packet adapter for socks/redir/tun
func NewPacket ¶
func NewPacket(target socks5.Addr, originTarget net.Addr, packet C.UDPPacket, source C.Type) *PacketAdapter
NewPacket is PacketAdapter generator
func (*PacketAdapter) Metadata ¶
func (s *PacketAdapter) Metadata() *C.Metadata
Metadata returns destination metadata
Click to show internal directories.
Click to hide internal directories.