vless

package
v0.0.0-...-b6031a6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: AGPL-3.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

View Source
const (
	XRV = "xtls-rprx-vision"
)

Variables

View Source
var (
	FailAuthErr = fmt.Errorf("incorrect UUID")
)
View Source
var File_transport_vless_config_proto protoreflect.FileDescriptor

Functions

func CompleteMetadataFromReader

func CompleteMetadataFromReader(m *Metadata, first4 []byte, r io.Reader) (err error)

func NewDialer

func NewDialer(nextDialer netproxy.Dialer, header protocol.Header) (netproxy.Dialer, error)

func Password2Key

func Password2Key(password string) (id []byte, err error)

Types

type Addons

type Addons struct {
	Flow string `protobuf:"bytes,1,opt,name=Flow,proto3" json:"Flow,omitempty"`
	Seed []byte `protobuf:"bytes,2,opt,name=Seed,proto3" json:"Seed,omitempty"`
	// contains filtered or unexported fields
}

func (*Addons) Descriptor deprecated

func (*Addons) Descriptor() ([]byte, []int)

Deprecated: Use Addons.ProtoReflect.Descriptor instead.

func (*Addons) GetFlow

func (x *Addons) GetFlow() string

func (*Addons) GetSeed

func (x *Addons) GetSeed() []byte

func (*Addons) ProtoMessage

func (*Addons) ProtoMessage()

func (*Addons) ProtoReflect

func (x *Addons) ProtoReflect() protoreflect.Message

func (*Addons) Reset

func (x *Addons) Reset()

func (*Addons) String

func (x *Addons) String() string

type Conn

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

func NewConn

func NewConn(conn netproxy.Conn, metadata Metadata, cmdKey []byte) (c *Conn, err error)

func (*Conn) IntrinsicConn

func (c *Conn) IntrinsicConn() netproxy.Conn

func (*Conn) Read

func (c *Conn) Read(b []byte) (n int, err error)

func (*Conn) ReadFrom

func (c *Conn) ReadFrom(p []byte) (n int, addr netip.AddrPort, err error)

func (*Conn) ReadReqHeader

func (c *Conn) ReadReqHeader() (err error)

func (*Conn) ReadRespHeader

func (c *Conn) ReadRespHeader() (err error)

func (*Conn) Write

func (c *Conn) Write(b []byte) (n int, err error)

func (*Conn) WriteTo

func (c *Conn) WriteTo(p []byte, addr string) (n int, err error)

type Dialer

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

func (*Dialer) DialContext

func (d *Dialer) DialContext(ctx context.Context, network string, addr string) (c netproxy.Conn, err error)

func (*Dialer) DialTcp

func (d *Dialer) DialTcp(ctx context.Context, addr string) (c netproxy.Conn, err error)

func (*Dialer) DialUdp

func (d *Dialer) DialUdp(ctx context.Context, addr string) (c netproxy.PacketConn, err error)

type Metadata

type Metadata struct {
	vmess.Metadata
	Flow string
	Mux  bool
}

Directories

Path Synopsis
Package vision implements VLESS flow `xtls-rprx-vision` introduced by Xray-core.
Package vision implements VLESS flow `xtls-rprx-vision` introduced by Xray-core.

Jump to

Keyboard shortcuts

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