utls

package
v5.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_transport_internet_tls_utls_config_proto protoreflect.FileDescriptor

Functions

func NewUTLSSecurityEngineFromConfig

func NewUTLSSecurityEngineFromConfig(config *Config) (security.Engine, error)

Types

type Config

type Config struct {
	TlsConfig *tls.Config `protobuf:"bytes,1,opt,name=tls_config,json=tlsConfig,proto3" json:"tls_config,omitempty"`
	Imitate   string      `protobuf:"bytes,2,opt,name=imitate,proto3" json:"imitate,omitempty"`
	NoSNI     bool        `protobuf:"varint,3,opt,name=noSNI,proto3" json:"noSNI,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetImitate

func (x *Config) GetImitate() string

func (*Config) GetNoSNI

func (x *Config) GetNoSNI() bool

func (*Config) GetTlsConfig

func (x *Config) GetTlsConfig() *tls.Config

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Engine

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

func (Engine) Client

func (e Engine) Client(conn net.Conn, opts ...security.Option) (security.Conn, error)

Jump to

Keyboard shortcuts

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