inbound

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTP

func NewHTTP(request *http.Request, conn net.Conn) *context.HTTPContext

NewHTTP recieve normal http request and return HTTPContext

func NewHTTPS

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

NewHTTPS recieve CONNECT request and return ConnContext

func NewSocket

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

NewSocket recieve TCP inbound and return ConnContext

func RemoveHopByHopHeaders

func RemoveHopByHopHeaders(header http.Header)

RemoveHopByHopHeaders remove hop-by-hop header

Types

type PacketAdapter added in v0.17.0

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

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

func NewPacket added in v0.17.0

func NewPacket(target socks5.Addr, packet C.UDPPacket, source C.Type) *PacketAdapter

NewPacket is PacketAdapter generator

func (*PacketAdapter) Metadata added in v0.17.0

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