Versions in this module Expand all Collapse all v1 v1.8.26 Sep 5, 2024 v1.8.25 Sep 5, 2024 Changes in this version + const CommandPaddingContinue + const CommandPaddingDirect + const CommandPaddingEnd + const TlsHandshakeTypeClientHello + const TlsHandshakeTypeServerHello + var Tls13CipherSuiteDic = map[uint16]string + var Tls13SupportedVersions = []byte + var TlsApplicationDataStart = []byte + var TlsClientHandShakeStart = []byte + var TlsServerHandShakeStart = []byte + func CopyRawConnIfExist(ctx context.Context, readerConn net.Conn, writerConn net.Conn, ...) error + func ReshapeMultiBuffer(ctx context.Context, buffer buf.MultiBuffer) buf.MultiBuffer + func UnwrapRawConn(conn net.Conn) (net.Conn, stats.Counter, stats.Counter) + func XtlsFilterTls(buffer buf.MultiBuffer, trafficState *TrafficState, ctx context.Context) + func XtlsPadding(b *buf.Buffer, command byte, userUUID *[]byte, longPadding bool, ...) *buf.Buffer + func XtlsUnpadding(b *buf.Buffer, s *TrafficState, ctx context.Context) *buf.Buffer + type GetInbound interface + GetInbound func() Inbound + type GetOutbound interface + GetOutbound func() Outbound + type Inbound interface + Network func() []net.Network + Process func(context.Context, net.Network, stat.Connection, routing.Dispatcher) error + type Outbound interface + Process func(context.Context, *transport.Link, internet.Dialer) error + type TrafficState struct + Cipher uint16 + CurrentCommand int + EnableXtls bool + IsPadding bool + IsTLS bool + IsTLS12orAbove bool + NumberOfPacketToFilter int + ReaderSwitchToDirectCopy bool + RemainingCommand int32 + RemainingContent int32 + RemainingPadding int32 + RemainingServerHello int32 + UserUUID []byte + WithinPaddingBuffers bool + WriterSwitchToDirectCopy bool + func NewTrafficState(userUUID []byte) *TrafficState + type UserManager interface + AddUser func(context.Context, *protocol.MemoryUser) error + RemoveUser func(context.Context, string) error + type VisionReader struct + func NewVisionReader(reader buf.Reader, state *TrafficState, context context.Context) *VisionReader + func (w *VisionReader) ReadMultiBuffer() (buf.MultiBuffer, error) + type VisionWriter struct + func NewVisionWriter(writer buf.Writer, state *TrafficState, context context.Context) *VisionWriter + func (w *VisionWriter) WriteMultiBuffer(mb buf.MultiBuffer) error