vless

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONNECT   byte = 1
	ASSOCIATE byte = 2
	IPV4      byte = 1
	DOMAIN    byte = 2
	IPV6      byte = 3
)

Variables

This section is empty.

Functions

func NewLocal

func NewLocal(p *proxy.Proto) proxy.Peer

func NewRemote

func NewRemote(p *proxy.Proto) proxy.Peer

Types

type Local

type Local struct {
	// contains filtered or unexported fields
}

func (Local) BeforeReceive

func (l Local) BeforeReceive(t *proxy.Tunnel) (err error)

skip header

func (Local) BeforeSend

func (l Local) BeforeSend(t *proxy.Tunnel) error

func (Local) Handle

func (v Local) Handle(src net.Conn)

type Remote

type Remote struct {
	// contains filtered or unexported fields
}

func (Remote) AfterDial

func (r Remote) AfterDial(t *proxy.Tunnel, err error) error

func (Remote) Handle

func (v Remote) Handle(src net.Conn)

Jump to

Keyboard shortcuts

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