outbound

package
v0.0.0-...-07af6e5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proxy_vlite_outbound_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Handler

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

func NewUDPOutboundHandler

func NewUDPOutboundHandler(ctx context.Context, config *UDPProtocolConfig) (*Handler, error)

func (*Handler) Process

func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer internet.Dialer) error

Process implements proxy.Outbound.Process().

type UDPProtocolConfig

type UDPProtocolConfig struct {
	Address                     *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Port                        uint32          `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Password                    string          `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	ScramblePacket              bool            `protobuf:"varint,4,opt,name=scramble_packet,json=scramblePacket,proto3" json:"scramble_packet,omitempty"`
	EnableFec                   bool            `protobuf:"varint,5,opt,name=enable_fec,json=enableFec,proto3" json:"enable_fec,omitempty"`
	EnableStabilization         bool            `protobuf:"varint,6,opt,name=enable_stabilization,json=enableStabilization,proto3" json:"enable_stabilization,omitempty"`
	EnableRenegotiation         bool            `protobuf:"varint,7,opt,name=enable_renegotiation,json=enableRenegotiation,proto3" json:"enable_renegotiation,omitempty"`
	HandshakeMaskingPaddingSize uint32          `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UDPProtocolConfig) Descriptor deprecated

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

Deprecated: Use UDPProtocolConfig.ProtoReflect.Descriptor instead.

func (*UDPProtocolConfig) GetAddress

func (x *UDPProtocolConfig) GetAddress() *net.IPOrDomain

func (*UDPProtocolConfig) GetEnableFec

func (x *UDPProtocolConfig) GetEnableFec() bool

func (*UDPProtocolConfig) GetEnableRenegotiation

func (x *UDPProtocolConfig) GetEnableRenegotiation() bool

func (*UDPProtocolConfig) GetEnableStabilization

func (x *UDPProtocolConfig) GetEnableStabilization() bool

func (*UDPProtocolConfig) GetHandshakeMaskingPaddingSize

func (x *UDPProtocolConfig) GetHandshakeMaskingPaddingSize() uint32

func (*UDPProtocolConfig) GetPassword

func (x *UDPProtocolConfig) GetPassword() string

func (*UDPProtocolConfig) GetPort

func (x *UDPProtocolConfig) GetPort() uint32

func (*UDPProtocolConfig) GetScramblePacket

func (x *UDPProtocolConfig) GetScramblePacket() bool

func (*UDPProtocolConfig) ProtoMessage

func (*UDPProtocolConfig) ProtoMessage()

func (*UDPProtocolConfig) ProtoReflect

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

func (*UDPProtocolConfig) Reset

func (x *UDPProtocolConfig) Reset()

func (*UDPProtocolConfig) String

func (x *UDPProtocolConfig) String() string

Jump to

Keyboard shortcuts

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