inbound

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveHopByHopHeaders

func RemoveHopByHopHeaders(header http.Header)

RemoveHopByHopHeaders remove hop-by-hop header

Types

type HTTPAdapter

type HTTPAdapter struct {
	net.Conn

	R *http.Request
	// contains filtered or unexported fields
}

HTTPAdapter is a adapter for HTTP connection

func NewHTTP

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

NewHTTP is HTTPAdapter generator

func (*HTTPAdapter) Metadata

func (h *HTTPAdapter) Metadata() *C.Metadata

Metadata return destination metadata

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

type SocketAdapter

type SocketAdapter struct {
	net.Conn
	// contains filtered or unexported fields
}

SocketAdapter is a adapter for socks and redir connection

func NewHTTPS

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

NewHTTPS is HTTPAdapter generator

func NewSocket

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

NewSocket is SocketAdapter generator

func (*SocketAdapter) Metadata

func (s *SocketAdapter) Metadata() *C.Metadata

Metadata return destination metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL