inbound

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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

func NewHTTPS

func NewHTTPS(request *http.Request, conn net.Conn) *context.ConnContext

NewHTTPS receive CONNECT request and return ConnContext

func NewSocket

func NewSocket(target socks5.Addr, conn net.Conn, source C.Type, ctx context2.Context) *context.ConnContext

NewSocket receive TCP inbound and return ConnContext

Types

type PacketAdapter

type PacketAdapter struct {
	C.UDPPacket
	// contains filtered or unexported fields
}

PacketAdapter is a UDP Packet adapter for socks/redir/tun

func NewPacket

func NewPacket(target socks5.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

Jump to

Keyboard shortcuts

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