vless

package
v0.0.0-...-6300974 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XRO          = "xtls-rprx-origin"
	XRD          = "xtls-rprx-direct"
	XROU         = "xtls-rprx-origin-udp443"
	XRDU         = "xtls-rprx-direct-udp443"
	Version byte = 0 // protocol version. preview version is 0
)

Variables

View Source
var File_transport_vless_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

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 Client

type Client struct {
	UUID   *uuid.UUID
	Addons *Addons
}

Client is vless connection generator

func NewClient

func NewClient(uuidStr string, addons *Addons) (*Client, error)

NewClient return Client instance

func (*Client) StreamConn

func (c *Client) StreamConn(conn net.Conn, dst *vmess.DstAddr) (net.Conn, error)

StreamConn return a Conn with net.Conn and DstAddr

type Conn

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

func (*Conn) Read

func (vc *Conn) Read(b []byte) (int, error)

Jump to

Keyboard shortcuts

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