Documentation
¶
Index ¶
- Variables
- func ErrorTransportFunc(err error) func(netapi.Listener) (netapi.Listener, error)
- func Listen(config *Inbound) (netapi.Accepter, error)
- func Network(config isInbound_Network) (netapi.Listener, error)
- func ParseTLS(t *TlsConfig) (*tls.Config, error)
- func Protocols(lis netapi.Listener, config isInbound_Protocol) (netapi.Accepter, error)
- func RegisterNetwork[T isInbound_Network](wrap func(T) (netapi.Listener, error))
- func RegisterProtocol[T isInbound_Protocol](wrap func(T) func(netapi.Listener) (netapi.Accepter, error))
- func RegisterTransport[T isTransport_Transport](wrap func(T) func(netapi.Listener) (netapi.Listener, error))
- func Transports(lis netapi.Listener, protocols []*Transport) (netapi.Listener, error)
- type Certificate
- func (*Certificate) Descriptor() ([]byte, []int)deprecated
- func (x *Certificate) GetCert() []byte
- func (x *Certificate) GetCertFilePath() string
- func (x *Certificate) GetKey() []byte
- func (x *Certificate) GetKeyFilePath() string
- func (*Certificate) ProtoMessage()
- func (x *Certificate) ProtoReflect() protoreflect.Message
- func (x *Certificate) Reset()
- func (x *Certificate) String() string
- func (c *Certificate) X509KeyPair() (tls.Certificate, error)
- type Empty
- type Grpc
- type Http
- type Http2
- type Inbound
- func (*Inbound) Descriptor() ([]byte, []int)deprecated
- func (x *Inbound) GetEmpty() *Empty
- func (x *Inbound) GetEnabled() bool
- func (x *Inbound) GetHttp() *Http
- func (x *Inbound) GetMix() *Mixed
- func (x *Inbound) GetName() string
- func (m *Inbound) GetNetwork() isInbound_Network
- func (m *Inbound) GetProtocol() isInbound_Protocol
- func (x *Inbound) GetQuic() *Quic2
- func (x *Inbound) GetRedir() *Redir
- func (x *Inbound) GetSocks4A() *Socks4A
- func (x *Inbound) GetSocks5() *Socks5
- func (x *Inbound) GetTcpudp() *Tcpudp
- func (x *Inbound) GetTproxy() *Tproxy
- func (x *Inbound) GetTransport() []*Transport
- func (x *Inbound) GetTun() *Tun
- func (x *Inbound) GetYuubinsya() *Yuubinsya
- func (*Inbound) ProtoMessage()
- func (x *Inbound) ProtoReflect() protoreflect.Message
- func (x *Inbound) Reset()
- func (x *Inbound) String() string
- type InboundConfig
- func (*InboundConfig) Descriptor() ([]byte, []int)deprecated
- func (x *InboundConfig) GetHijackDns() bool
- func (x *InboundConfig) GetHijackDnsFakeip() bool
- func (x *InboundConfig) GetInbounds() map[string]*Inbound
- func (x *InboundConfig) GetServers() map[string]*Protocoldeprecated
- func (*InboundConfig) ProtoMessage()
- func (x *InboundConfig) ProtoReflect() protoreflect.Message
- func (x *InboundConfig) Reset()
- func (x *InboundConfig) String() string
- type Inbound_Empty
- type Inbound_Http
- type Inbound_Mix
- type Inbound_Quic
- type Inbound_Redir
- type Inbound_Socks4A
- type Inbound_Socks5
- type Inbound_Tcpudp
- type Inbound_Tproxy
- type Inbound_Tun
- type Inbound_Yuubinsya
- type Mixed
- func (*Mixed) Descriptor() ([]byte, []int)deprecated
- func (x *Mixed) GetHost() stringdeprecated
- func (x *Mixed) GetPassword() string
- func (x *Mixed) GetUsername() string
- func (*Mixed) ProtoMessage()
- func (x *Mixed) ProtoReflect() protoreflect.Message
- func (x *Mixed) Reset()
- func (x *Mixed) String() string
- type Mux
- type Normal
- type Protocol
- func (*Protocol) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol) GetEnabled() bool
- func (x *Protocol) GetHttp() *Http
- func (x *Protocol) GetMix() *Mixed
- func (x *Protocol) GetName() string
- func (m *Protocol) GetProtocol() isProtocol_Protocol
- func (x *Protocol) GetRedir() *Redir
- func (x *Protocol) GetSocks4A() *Socks4A
- func (x *Protocol) GetSocks5() *Socks5
- func (x *Protocol) GetTproxy() *Tproxy
- func (x *Protocol) GetTun() *Tun
- func (x *Protocol) GetYuubinsya() *Yuubinsya
- func (*Protocol) ProtoMessage()
- func (x *Protocol) ProtoReflect() protoreflect.Message
- func (x *Protocol) Reset()
- func (x *Protocol) String() string
- func (v *Protocol) ToInbound() *Inbound
- type Protocol_Http
- type Protocol_Mix
- type Protocol_Redir
- type Protocol_Socks4A
- type Protocol_Socks5
- type Protocol_Tproxy
- type Protocol_Tun
- type Protocol_Yuubinsya
- type Quic
- type Quic2
- type Reality
- func (*Reality) Descriptor() ([]byte, []int)deprecated
- func (x *Reality) GetDebug() bool
- func (x *Reality) GetDest() string
- func (x *Reality) GetPrivateKey() string
- func (x *Reality) GetServerName() []string
- func (x *Reality) GetShortId() []string
- func (*Reality) ProtoMessage()
- func (x *Reality) ProtoReflect() protoreflect.Message
- func (x *Reality) Reset()
- func (x *Reality) String() string
- type Redir
- type Route
- type Socks4A
- type Socks5
- func (*Socks5) Descriptor() ([]byte, []int)deprecated
- func (x *Socks5) GetHost() stringdeprecated
- func (x *Socks5) GetPassword() string
- func (x *Socks5) GetUdp() bool
- func (x *Socks5) GetUsername() string
- func (*Socks5) ProtoMessage()
- func (x *Socks5) ProtoReflect() protoreflect.Message
- func (x *Socks5) Reset()
- func (x *Socks5) String() string
- type TcpUdpControl
- func (TcpUdpControl) Descriptor() protoreflect.EnumDescriptor
- func (x TcpUdpControl) Enum() *TcpUdpControl
- func (TcpUdpControl) EnumDescriptor() ([]byte, []int)deprecated
- func (x TcpUdpControl) Number() protoreflect.EnumNumber
- func (x TcpUdpControl) String() string
- func (TcpUdpControl) Type() protoreflect.EnumType
- type Tcpudp
- type Tls
- type TlsConfig
- func (*TlsConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TlsConfig) GetCertificates() []*Certificate
- func (x *TlsConfig) GetNextProtos() []string
- func (x *TlsConfig) GetServerNameCertificate() map[string]*Certificate
- func (t *TlsConfig) ParseCertificates() []tls.Certificate
- func (t *TlsConfig) ParseServerNameCertificate() *trie.Trie[*tls.Certificate]
- func (*TlsConfig) ProtoMessage()
- func (x *TlsConfig) ProtoReflect() protoreflect.Message
- func (x *TlsConfig) Reset()
- func (x *TlsConfig) String() string
- type TlsConfigManager
- type Tproxy
- func (*Tproxy) Descriptor() ([]byte, []int)deprecated
- func (x *Tproxy) GetDnsHijacking() bool
- func (x *Tproxy) GetForceFakeip() bool
- func (x *Tproxy) GetHost() string
- func (*Tproxy) ProtoMessage()
- func (x *Tproxy) ProtoReflect() protoreflect.Message
- func (x *Tproxy) Reset()
- func (x *Tproxy) String() string
- type Transport
- func (*Transport) Descriptor() ([]byte, []int)deprecated
- func (x *Transport) GetGrpc() *Grpc
- func (x *Transport) GetHttp2() *Http2
- func (x *Transport) GetMux() *Mux
- func (x *Transport) GetNormal() *Normal
- func (x *Transport) GetReality() *Reality
- func (x *Transport) GetTls() *Tls
- func (m *Transport) GetTransport() isTransport_Transport
- func (x *Transport) GetWebsocket() *Websocket
- func (*Transport) ProtoMessage()
- func (x *Transport) ProtoReflect() protoreflect.Message
- func (x *Transport) Reset()
- func (x *Transport) String() string
- type Transport_Grpc
- type Transport_Http2
- type Transport_Mux
- type Transport_Normal
- type Transport_Reality
- type Transport_Tls
- type Transport_Websocket
- type Tun
- func (*Tun) Descriptor() ([]byte, []int)deprecated
- func (x *Tun) GetDnsHijacking() booldeprecated
- func (x *Tun) GetDriver() TunEndpointDriver
- func (x *Tun) GetForceFakeip() bool
- func (x *Tun) GetGateway() stringdeprecated
- func (x *Tun) GetMtu() int32
- func (x *Tun) GetName() string
- func (x *Tun) GetPortal() string
- func (x *Tun) GetPortalV6() string
- func (x *Tun) GetRoute() *Route
- func (x *Tun) GetSkipMulticast() bool
- func (*Tun) ProtoMessage()
- func (x *Tun) ProtoReflect() protoreflect.Message
- func (x *Tun) Reset()
- func (x *Tun) String() string
- type TunEndpointDriver
- func (TunEndpointDriver) Descriptor() protoreflect.EnumDescriptor
- func (x TunEndpointDriver) Enum() *TunEndpointDriver
- func (TunEndpointDriver) EnumDescriptor() ([]byte, []int)deprecated
- func (x TunEndpointDriver) Number() protoreflect.EnumNumber
- func (x TunEndpointDriver) String() string
- func (TunEndpointDriver) Type() protoreflect.EnumType
- type Websocket
- type Yuubinsya
- func (*Yuubinsya) Descriptor() ([]byte, []int)deprecated
- func (x *Yuubinsya) GetGrpc() *Grpcdeprecated
- func (x *Yuubinsya) GetHost() stringdeprecated
- func (x *Yuubinsya) GetHttp2() *Http2deprecated
- func (x *Yuubinsya) GetMux() bool
- func (x *Yuubinsya) GetNormal() *Normaldeprecated
- func (x *Yuubinsya) GetPassword() string
- func (m *Yuubinsya) GetProtocol() isYuubinsya_Protocol
- func (x *Yuubinsya) GetQuic() *Quicdeprecated
- func (x *Yuubinsya) GetReality() *Realitydeprecated
- func (x *Yuubinsya) GetTcpEncrypt() bool
- func (x *Yuubinsya) GetTls() *Tlsdeprecated
- func (x *Yuubinsya) GetUdpEncrypt() bool
- func (x *Yuubinsya) GetWebsocket() *Websocketdeprecated
- func (*Yuubinsya) ProtoMessage()
- func (x *Yuubinsya) ProtoReflect() protoreflect.Message
- func (x *Yuubinsya) Reset()
- func (x *Yuubinsya) String() string
- type YuubinsyaProtocolNormal
- type Yuubinsya_Grpc
- type Yuubinsya_Http2
- type Yuubinsya_Normal
- type Yuubinsya_Quic
- type Yuubinsya_Reality
- type Yuubinsya_Tls
- type Yuubinsya_Websocket
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TcpUdpControl_name = map[int32]string{ 0: "tcp_udp_control_all", 1: "disable_tcp", 2: "disable_udp", } TcpUdpControl_value = map[string]int32{ "tcp_udp_control_all": 0, "disable_tcp": 1, "disable_udp": 2, } )
Enum value maps for TcpUdpControl.
View Source
var ( TunEndpointDriver_name = map[int32]string{ 0: "fdbased", 1: "channel", 2: "system_gvisor", } TunEndpointDriver_value = map[string]int32{ "fdbased": 0, "channel": 1, "system_gvisor": 2, } )
Enum value maps for TunEndpointDriver.
View Source
var File_config_listener_listener_proto protoreflect.FileDescriptor
Functions ¶
func ErrorTransportFunc ¶ added in v0.3.3
func RegisterNetwork ¶ added in v0.3.3
func RegisterProtocol ¶
func RegisterTransport ¶ added in v0.3.3
Types ¶
type Certificate ¶
type Certificate struct { Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` CertFilePath string `protobuf:"bytes,3,opt,name=cert_file_path,proto3" json:"cert_file_path,omitempty"` KeyFilePath string `protobuf:"bytes,4,opt,name=key_file_path,proto3" json:"key_file_path,omitempty"` // contains filtered or unexported fields }
func (*Certificate) Descriptor
deprecated
func (*Certificate) Descriptor() ([]byte, []int)
Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
func (*Certificate) GetCert ¶
func (x *Certificate) GetCert() []byte
func (*Certificate) GetCertFilePath ¶
func (x *Certificate) GetCertFilePath() string
func (*Certificate) GetKey ¶
func (x *Certificate) GetKey() []byte
func (*Certificate) GetKeyFilePath ¶
func (x *Certificate) GetKeyFilePath() string
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) ProtoReflect ¶
func (x *Certificate) ProtoReflect() protoreflect.Message
func (*Certificate) Reset ¶
func (x *Certificate) Reset()
func (*Certificate) String ¶
func (x *Certificate) String() string
func (*Certificate) X509KeyPair ¶
func (c *Certificate) X509KeyPair() (tls.Certificate, error)
type Empty ¶ added in v0.3.3
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
added in
v0.3.3
func (*Empty) ProtoMessage ¶ added in v0.3.3
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶ added in v0.3.3
func (x *Empty) ProtoReflect() protoreflect.Message
type Grpc ¶
type Grpc struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Tls *TlsConfig `protobuf:"bytes,1,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
func (*Grpc) Descriptor
deprecated
func (*Grpc) ProtoMessage ¶
func (*Grpc) ProtoMessage()
func (*Grpc) ProtoReflect ¶
func (x *Grpc) ProtoReflect() protoreflect.Message
type Http ¶
type Http struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Http) Descriptor
deprecated
func (*Http) GetPassword ¶
func (*Http) GetUsername ¶
func (*Http) ProtoMessage ¶
func (*Http) ProtoMessage()
func (*Http) ProtoReflect ¶
func (x *Http) ProtoReflect() protoreflect.Message
type Http2 ¶
type Http2 struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Tls *TlsConfig `protobuf:"bytes,1,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
func (*Http2) Descriptor
deprecated
func (*Http2) ProtoMessage ¶
func (*Http2) ProtoMessage()
func (*Http2) ProtoReflect ¶
func (x *Http2) ProtoReflect() protoreflect.Message
type Inbound ¶ added in v0.3.3
type Inbound struct { Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"` Enabled bool `protobuf:"varint,14,opt,name=enabled,proto3" json:"enabled,omitempty"` // Types that are assignable to Network: // // *Inbound_Empty // *Inbound_Tcpudp // *Inbound_Quic Network isInbound_Network `protobuf_oneof:"network"` Transport []*Transport `protobuf:"bytes,2,rep,name=transport,proto3" json:"transport,omitempty"` // Types that are assignable to Protocol: // // *Inbound_Http // *Inbound_Socks5 // *Inbound_Yuubinsya // *Inbound_Mix // *Inbound_Socks4A // *Inbound_Tproxy // *Inbound_Redir // *Inbound_Tun Protocol isInbound_Protocol `protobuf_oneof:"protocol"` // contains filtered or unexported fields }
func (*Inbound) Descriptor
deprecated
added in
v0.3.3
func (*Inbound) GetEnabled ¶ added in v0.3.3
func (*Inbound) GetNetwork ¶ added in v0.3.3
func (m *Inbound) GetNetwork() isInbound_Network
func (*Inbound) GetProtocol ¶ added in v0.3.3
func (m *Inbound) GetProtocol() isInbound_Protocol
func (*Inbound) GetSocks4A ¶ added in v0.3.3
func (*Inbound) GetTransport ¶ added in v0.3.3
func (*Inbound) GetYuubinsya ¶ added in v0.3.3
func (*Inbound) ProtoMessage ¶ added in v0.3.3
func (*Inbound) ProtoMessage()
func (*Inbound) ProtoReflect ¶ added in v0.3.3
func (x *Inbound) ProtoReflect() protoreflect.Message
type InboundConfig ¶
type InboundConfig struct { HijackDns bool `protobuf:"varint,2,opt,name=hijack_dns,proto3" json:"hijack_dns,omitempty"` HijackDnsFakeip bool `protobuf:"varint,3,opt,name=hijack_dns_fakeip,proto3" json:"hijack_dns_fakeip,omitempty"` // Deprecated: Marked as deprecated in config/listener/listener.proto. Servers map[string]*Protocol `` /* 155-byte string literal not displayed */ Inbounds map[string]*Inbound `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*InboundConfig) Descriptor
deprecated
func (*InboundConfig) Descriptor() ([]byte, []int)
Deprecated: Use InboundConfig.ProtoReflect.Descriptor instead.
func (*InboundConfig) GetHijackDns ¶ added in v0.3.3
func (x *InboundConfig) GetHijackDns() bool
func (*InboundConfig) GetHijackDnsFakeip ¶ added in v0.3.3
func (x *InboundConfig) GetHijackDnsFakeip() bool
func (*InboundConfig) GetInbounds ¶ added in v0.3.3
func (x *InboundConfig) GetInbounds() map[string]*Inbound
func (*InboundConfig) GetServers
deprecated
func (x *InboundConfig) GetServers() map[string]*Protocol
Deprecated: Marked as deprecated in config/listener/listener.proto.
func (*InboundConfig) ProtoMessage ¶
func (*InboundConfig) ProtoMessage()
func (*InboundConfig) ProtoReflect ¶
func (x *InboundConfig) ProtoReflect() protoreflect.Message
func (*InboundConfig) Reset ¶
func (x *InboundConfig) Reset()
func (*InboundConfig) String ¶
func (x *InboundConfig) String() string
type Inbound_Empty ¶ added in v0.3.3
type Inbound_Empty struct {
Empty *Empty `protobuf:"bytes,21,opt,name=empty,proto3,oneof"`
}
type Inbound_Http ¶ added in v0.3.3
type Inbound_Http struct {
Http *Http `protobuf:"bytes,3,opt,name=http,proto3,oneof"`
}
type Inbound_Mix ¶ added in v0.3.3
type Inbound_Mix struct {
Mix *Mixed `protobuf:"bytes,8,opt,name=mix,json=mixed,proto3,oneof"`
}
type Inbound_Quic ¶ added in v0.3.3
type Inbound_Quic struct {
Quic *Quic2 `protobuf:"bytes,16,opt,name=quic,proto3,oneof"`
}
type Inbound_Redir ¶ added in v0.3.3
type Inbound_Redir struct {
Redir *Redir `protobuf:"bytes,18,opt,name=redir,proto3,oneof"`
}
type Inbound_Socks4A ¶ added in v0.3.3
type Inbound_Socks4A struct {
Socks4A *Socks4A `protobuf:"bytes,9,opt,name=socks4a,proto3,oneof"`
}
type Inbound_Socks5 ¶ added in v0.3.3
type Inbound_Socks5 struct {
Socks5 *Socks5 `protobuf:"bytes,4,opt,name=socks5,proto3,oneof"`
}
type Inbound_Tcpudp ¶ added in v0.3.3
type Inbound_Tcpudp struct {
Tcpudp *Tcpudp `protobuf:"bytes,15,opt,name=tcpudp,proto3,oneof"`
}
type Inbound_Tproxy ¶ added in v0.3.3
type Inbound_Tproxy struct {
Tproxy *Tproxy `protobuf:"bytes,20,opt,name=tproxy,proto3,oneof"`
}
type Inbound_Tun ¶ added in v0.3.3
type Inbound_Tun struct {
Tun *Tun `protobuf:"bytes,19,opt,name=tun,proto3,oneof"`
}
type Inbound_Yuubinsya ¶ added in v0.3.3
type Inbound_Yuubinsya struct {
Yuubinsya *Yuubinsya `protobuf:"bytes,7,opt,name=yuubinsya,proto3,oneof"`
}
type Mixed ¶
type Mixed struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Mixed) Descriptor
deprecated
func (*Mixed) GetPassword ¶
func (*Mixed) GetUsername ¶
func (*Mixed) ProtoMessage ¶
func (*Mixed) ProtoMessage()
func (*Mixed) ProtoReflect ¶
func (x *Mixed) ProtoReflect() protoreflect.Message
type Mux ¶ added in v0.3.3
type Mux struct {
// contains filtered or unexported fields
}
func (*Mux) Descriptor
deprecated
added in
v0.3.3
func (*Mux) ProtoMessage ¶ added in v0.3.3
func (*Mux) ProtoMessage()
func (*Mux) ProtoReflect ¶ added in v0.3.3
func (x *Mux) ProtoReflect() protoreflect.Message
type Normal ¶
type Normal struct {
// contains filtered or unexported fields
}
func (*Normal) Descriptor
deprecated
func (*Normal) ProtoMessage ¶
func (*Normal) ProtoMessage()
func (*Normal) ProtoReflect ¶
func (x *Normal) ProtoReflect() protoreflect.Message
type Protocol ¶
type Protocol struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` // Types that are assignable to Protocol: // // *Protocol_Http // *Protocol_Socks5 // *Protocol_Redir // *Protocol_Tun // *Protocol_Yuubinsya // *Protocol_Mix // *Protocol_Socks4A // *Protocol_Tproxy Protocol isProtocol_Protocol `protobuf_oneof:"protocol"` // contains filtered or unexported fields }
func (*Protocol) Descriptor
deprecated
func (*Protocol) GetEnabled ¶
func (*Protocol) GetProtocol ¶
func (m *Protocol) GetProtocol() isProtocol_Protocol
func (*Protocol) GetSocks4A ¶
func (*Protocol) GetYuubinsya ¶
func (*Protocol) ProtoMessage ¶
func (*Protocol) ProtoMessage()
func (*Protocol) ProtoReflect ¶
func (x *Protocol) ProtoReflect() protoreflect.Message
type Protocol_Http ¶
type Protocol_Http struct {
Http *Http `protobuf:"bytes,3,opt,name=http,proto3,oneof"`
}
type Protocol_Mix ¶
type Protocol_Mix struct {
Mix *Mixed `protobuf:"bytes,8,opt,name=mix,json=mixed,proto3,oneof"`
}
type Protocol_Redir ¶
type Protocol_Redir struct {
Redir *Redir `protobuf:"bytes,5,opt,name=redir,proto3,oneof"`
}
type Protocol_Socks4A ¶
type Protocol_Socks4A struct {
Socks4A *Socks4A `protobuf:"bytes,9,opt,name=socks4a,proto3,oneof"`
}
type Protocol_Socks5 ¶
type Protocol_Socks5 struct {
Socks5 *Socks5 `protobuf:"bytes,4,opt,name=socks5,proto3,oneof"`
}
type Protocol_Tproxy ¶
type Protocol_Tproxy struct {
Tproxy *Tproxy `protobuf:"bytes,10,opt,name=tproxy,proto3,oneof"`
}
type Protocol_Tun ¶
type Protocol_Tun struct {
Tun *Tun `protobuf:"bytes,6,opt,name=tun,proto3,oneof"`
}
type Protocol_Yuubinsya ¶
type Protocol_Yuubinsya struct {
Yuubinsya *Yuubinsya `protobuf:"bytes,7,opt,name=yuubinsya,proto3,oneof"`
}
type Quic ¶
type Quic struct { Tls *TlsConfig `protobuf:"bytes,1,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
func (*Quic) Descriptor
deprecated
func (*Quic) ProtoMessage ¶
func (*Quic) ProtoMessage()
func (*Quic) ProtoReflect ¶
func (x *Quic) ProtoReflect() protoreflect.Message
type Quic2 ¶ added in v0.3.3
type Quic2 struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Tls *TlsConfig `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
func (*Quic2) Descriptor
deprecated
added in
v0.3.3
func (*Quic2) ProtoMessage ¶ added in v0.3.3
func (*Quic2) ProtoMessage()
func (*Quic2) ProtoReflect ¶ added in v0.3.3
func (x *Quic2) ProtoReflect() protoreflect.Message
type Reality ¶
type Reality struct { ShortId []string `protobuf:"bytes,1,rep,name=short_id,proto3" json:"short_id,omitempty"` ServerName []string `protobuf:"bytes,2,rep,name=server_name,proto3" json:"server_name,omitempty"` Dest string `protobuf:"bytes,3,opt,name=dest,proto3" json:"dest,omitempty"` PrivateKey string `protobuf:"bytes,4,opt,name=private_key,proto3" json:"private_key,omitempty"` Debug bool `protobuf:"varint,5,opt,name=debug,proto3" json:"debug,omitempty"` // contains filtered or unexported fields }
func (*Reality) Descriptor
deprecated
func (*Reality) GetPrivateKey ¶
func (*Reality) GetServerName ¶
func (*Reality) GetShortId ¶
func (*Reality) ProtoMessage ¶
func (*Reality) ProtoMessage()
func (*Reality) ProtoReflect ¶
func (x *Reality) ProtoReflect() protoreflect.Message
type Redir ¶
type Redir struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // contains filtered or unexported fields }
func (*Redir) Descriptor
deprecated
func (*Redir) ProtoMessage ¶
func (*Redir) ProtoMessage()
func (*Redir) ProtoReflect ¶
func (x *Redir) ProtoReflect() protoreflect.Message
type Route ¶ added in v0.3.4
type Route struct { Routes []string `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"` Excludes []string `protobuf:"bytes,2,rep,name=excludes,proto3" json:"excludes,omitempty"` // contains filtered or unexported fields }
func (*Route) Descriptor
deprecated
added in
v0.3.4
func (*Route) GetExcludes ¶ added in v0.3.4
func (*Route) ProtoMessage ¶ added in v0.3.4
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶ added in v0.3.4
func (x *Route) ProtoReflect() protoreflect.Message
type Socks4A ¶
type Socks4A struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*Socks4A) Descriptor
deprecated
func (*Socks4A) GetUsername ¶
func (*Socks4A) ProtoMessage ¶
func (*Socks4A) ProtoMessage()
func (*Socks4A) ProtoReflect ¶
func (x *Socks4A) ProtoReflect() protoreflect.Message
type Socks5 ¶
type Socks5 struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` Udp bool `protobuf:"varint,5,opt,name=udp,proto3" json:"udp,omitempty"` // contains filtered or unexported fields }
func (*Socks5) Descriptor
deprecated
func (*Socks5) GetPassword ¶
func (*Socks5) GetUsername ¶
func (*Socks5) ProtoMessage ¶
func (*Socks5) ProtoMessage()
func (*Socks5) ProtoReflect ¶
func (x *Socks5) ProtoReflect() protoreflect.Message
type TcpUdpControl ¶ added in v0.3.4
type TcpUdpControl int32
const ( TcpUdpControl_tcp_udp_control_all TcpUdpControl = 0 TcpUdpControl_disable_tcp TcpUdpControl = 1 TcpUdpControl_disable_udp TcpUdpControl = 2 )
func (TcpUdpControl) Descriptor ¶ added in v0.3.4
func (TcpUdpControl) Descriptor() protoreflect.EnumDescriptor
func (TcpUdpControl) Enum ¶ added in v0.3.4
func (x TcpUdpControl) Enum() *TcpUdpControl
func (TcpUdpControl) EnumDescriptor
deprecated
added in
v0.3.4
func (TcpUdpControl) EnumDescriptor() ([]byte, []int)
Deprecated: Use TcpUdpControl.Descriptor instead.
func (TcpUdpControl) Number ¶ added in v0.3.4
func (x TcpUdpControl) Number() protoreflect.EnumNumber
func (TcpUdpControl) String ¶ added in v0.3.4
func (x TcpUdpControl) String() string
func (TcpUdpControl) Type ¶ added in v0.3.4
func (TcpUdpControl) Type() protoreflect.EnumType
type Tcpudp ¶ added in v0.3.3
type Tcpudp struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Control TcpUdpControl `protobuf:"varint,2,opt,name=control,proto3,enum=yuhaiin.listener.TcpUdpControl" json:"control,omitempty"` // contains filtered or unexported fields }
func (*Tcpudp) Descriptor
deprecated
added in
v0.3.3
func (*Tcpudp) GetControl ¶ added in v0.3.4
func (x *Tcpudp) GetControl() TcpUdpControl
func (*Tcpudp) ProtoMessage ¶ added in v0.3.3
func (*Tcpudp) ProtoMessage()
func (*Tcpudp) ProtoReflect ¶ added in v0.3.3
func (x *Tcpudp) ProtoReflect() protoreflect.Message
type Tls ¶
type Tls struct { Tls *TlsConfig `protobuf:"bytes,1,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
func (*Tls) Descriptor
deprecated
func (*Tls) ProtoMessage ¶
func (*Tls) ProtoMessage()
func (*Tls) ProtoReflect ¶
func (x *Tls) ProtoReflect() protoreflect.Message
type TlsConfig ¶
type TlsConfig struct { Certificates []*Certificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` NextProtos []string `protobuf:"bytes,3,rep,name=next_protos,proto3" json:"next_protos,omitempty"` ServerNameCertificate map[string]*Certificate `` /* 187-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TlsConfig) Descriptor
deprecated
func (*TlsConfig) GetCertificates ¶
func (x *TlsConfig) GetCertificates() []*Certificate
func (*TlsConfig) GetNextProtos ¶
func (*TlsConfig) GetServerNameCertificate ¶
func (x *TlsConfig) GetServerNameCertificate() map[string]*Certificate
func (*TlsConfig) ParseCertificates ¶
func (t *TlsConfig) ParseCertificates() []tls.Certificate
func (*TlsConfig) ParseServerNameCertificate ¶
func (t *TlsConfig) ParseServerNameCertificate() *trie.Trie[*tls.Certificate]
func (*TlsConfig) ProtoMessage ¶
func (*TlsConfig) ProtoMessage()
func (*TlsConfig) ProtoReflect ¶
func (x *TlsConfig) ProtoReflect() protoreflect.Message
type TlsConfigManager ¶
type TlsConfigManager struct {
// contains filtered or unexported fields
}
func NewTlsConfigManager ¶
func NewTlsConfigManager(t *TlsConfig) *TlsConfigManager
func (*TlsConfigManager) Refresh ¶
func (t *TlsConfigManager) Refresh()
type Tproxy ¶
type Tproxy struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` DnsHijacking bool `protobuf:"varint,2,opt,name=dns_hijacking,proto3" json:"dns_hijacking,omitempty"` ForceFakeip bool `protobuf:"varint,3,opt,name=force_fakeip,proto3" json:"force_fakeip,omitempty"` // contains filtered or unexported fields }
func (*Tproxy) Descriptor
deprecated
func (*Tproxy) GetDnsHijacking ¶
func (*Tproxy) GetForceFakeip ¶
func (*Tproxy) ProtoMessage ¶
func (*Tproxy) ProtoMessage()
func (*Tproxy) ProtoReflect ¶
func (x *Tproxy) ProtoReflect() protoreflect.Message
type Transport ¶ added in v0.3.3
type Transport struct { // Types that are assignable to Transport: // // *Transport_Normal // *Transport_Tls // *Transport_Mux // *Transport_Http2 // *Transport_Websocket // *Transport_Grpc // *Transport_Reality Transport isTransport_Transport `protobuf_oneof:"transport"` // contains filtered or unexported fields }
func (*Transport) Descriptor
deprecated
added in
v0.3.3
func (*Transport) GetReality ¶ added in v0.3.3
func (*Transport) GetTransport ¶ added in v0.3.3
func (m *Transport) GetTransport() isTransport_Transport
func (*Transport) GetWebsocket ¶ added in v0.3.3
func (*Transport) ProtoMessage ¶ added in v0.3.3
func (*Transport) ProtoMessage()
func (*Transport) ProtoReflect ¶ added in v0.3.3
func (x *Transport) ProtoReflect() protoreflect.Message
type Transport_Grpc ¶ added in v0.3.3
type Transport_Grpc struct {
Grpc *Grpc `protobuf:"bytes,11,opt,name=grpc,proto3,oneof"`
}
type Transport_Http2 ¶ added in v0.3.3
type Transport_Http2 struct {
Http2 *Http2 `protobuf:"bytes,5,opt,name=http2,proto3,oneof"`
}
type Transport_Mux ¶ added in v0.3.3
type Transport_Mux struct {
Mux *Mux `protobuf:"bytes,2,opt,name=mux,proto3,oneof"`
}
type Transport_Normal ¶ added in v0.3.3
type Transport_Normal struct {
Normal *Normal `protobuf:"bytes,12,opt,name=normal,proto3,oneof"`
}
type Transport_Reality ¶ added in v0.3.3
type Transport_Reality struct {
Reality *Reality `protobuf:"bytes,10,opt,name=reality,proto3,oneof"`
}
type Transport_Tls ¶ added in v0.3.3
type Transport_Tls struct {
Tls *Tls `protobuf:"bytes,1,opt,name=tls,proto3,oneof"`
}
type Transport_Websocket ¶ added in v0.3.3
type Transport_Websocket struct {
Websocket *Websocket `protobuf:"bytes,6,opt,name=websocket,proto3,oneof"`
}
type Tun ¶
type Tun struct { // name of the tun device // eg: tun://tun0, fd://123 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mtu int32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"` // Deprecated: Marked as deprecated in config/listener/listener.proto. Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"` // Deprecated: Marked as deprecated in config/listener/listener.proto. DnsHijacking bool `protobuf:"varint,4,opt,name=dns_hijacking,proto3" json:"dns_hijacking,omitempty"` ForceFakeip bool `protobuf:"varint,9,opt,name=force_fakeip,proto3" json:"force_fakeip,omitempty"` SkipMulticast bool `protobuf:"varint,6,opt,name=skip_multicast,proto3" json:"skip_multicast,omitempty"` Driver TunEndpointDriver `protobuf:"varint,7,opt,name=driver,proto3,enum=yuhaiin.listener.TunEndpointDriver" json:"driver,omitempty"` Portal string `protobuf:"bytes,8,opt,name=portal,proto3" json:"portal,omitempty"` PortalV6 string `protobuf:"bytes,11,opt,name=portal_v6,proto3" json:"portal_v6,omitempty"` Route *Route `protobuf:"bytes,10,opt,name=route,proto3" json:"route,omitempty"` // contains filtered or unexported fields }
func (*Tun) Descriptor
deprecated
func (*Tun) GetDnsHijacking
deprecated
func (*Tun) GetDriver ¶
func (x *Tun) GetDriver() TunEndpointDriver
func (*Tun) GetForceFakeip ¶
func (*Tun) GetGateway
deprecated
func (*Tun) GetPortalV6 ¶ added in v0.3.4
func (*Tun) GetSkipMulticast ¶
func (*Tun) ProtoMessage ¶
func (*Tun) ProtoMessage()
func (*Tun) ProtoReflect ¶
func (x *Tun) ProtoReflect() protoreflect.Message
type TunEndpointDriver ¶
type TunEndpointDriver int32
const ( Tun_fdbased TunEndpointDriver = 0 Tun_channel TunEndpointDriver = 1 Tun_system_gvisor TunEndpointDriver = 2 )
func (TunEndpointDriver) Descriptor ¶
func (TunEndpointDriver) Descriptor() protoreflect.EnumDescriptor
func (TunEndpointDriver) Enum ¶
func (x TunEndpointDriver) Enum() *TunEndpointDriver
func (TunEndpointDriver) EnumDescriptor
deprecated
func (TunEndpointDriver) EnumDescriptor() ([]byte, []int)
Deprecated: Use TunEndpointDriver.Descriptor instead.
func (TunEndpointDriver) Number ¶
func (x TunEndpointDriver) Number() protoreflect.EnumNumber
func (TunEndpointDriver) String ¶
func (x TunEndpointDriver) String() string
func (TunEndpointDriver) Type ¶
func (TunEndpointDriver) Type() protoreflect.EnumType
type Websocket ¶
type Websocket struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Tls *TlsConfig `protobuf:"bytes,1,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
func (*Websocket) Descriptor
deprecated
func (*Websocket) ProtoMessage ¶
func (*Websocket) ProtoMessage()
func (*Websocket) ProtoReflect ¶
func (x *Websocket) ProtoReflect() protoreflect.Message
type Yuubinsya ¶
type Yuubinsya struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` TcpEncrypt bool `protobuf:"varint,12,opt,name=tcp_encrypt,proto3" json:"tcp_encrypt,omitempty"` UdpEncrypt bool `protobuf:"varint,13,opt,name=udp_encrypt,proto3" json:"udp_encrypt,omitempty"` Mux bool `protobuf:"varint,11,opt,name=mux,proto3" json:"mux,omitempty"` // Types that are assignable to Protocol: // // *Yuubinsya_Normal // *Yuubinsya_Tls // *Yuubinsya_Quic // *Yuubinsya_Websocket // *Yuubinsya_Grpc // *Yuubinsya_Http2 // *Yuubinsya_Reality Protocol isYuubinsya_Protocol `protobuf_oneof:"protocol"` // contains filtered or unexported fields }
func (*Yuubinsya) Descriptor
deprecated
func (*Yuubinsya) GetPassword ¶
func (*Yuubinsya) GetProtocol ¶
func (m *Yuubinsya) GetProtocol() isYuubinsya_Protocol
func (*Yuubinsya) GetReality
deprecated
func (*Yuubinsya) GetTcpEncrypt ¶ added in v0.3.5
func (*Yuubinsya) GetUdpEncrypt ¶ added in v0.3.5
func (*Yuubinsya) GetWebsocket
deprecated
func (*Yuubinsya) ProtoMessage ¶
func (*Yuubinsya) ProtoMessage()
func (*Yuubinsya) ProtoReflect ¶
func (x *Yuubinsya) ProtoReflect() protoreflect.Message
type YuubinsyaProtocolNormal ¶
type YuubinsyaProtocolNormal struct {
// contains filtered or unexported fields
}
func (*YuubinsyaProtocolNormal) Descriptor
deprecated
func (*YuubinsyaProtocolNormal) Descriptor() ([]byte, []int)
Deprecated: Use YuubinsyaProtocolNormal.ProtoReflect.Descriptor instead.
func (*YuubinsyaProtocolNormal) ProtoMessage ¶
func (*YuubinsyaProtocolNormal) ProtoMessage()
func (*YuubinsyaProtocolNormal) ProtoReflect ¶
func (x *YuubinsyaProtocolNormal) ProtoReflect() protoreflect.Message
func (*YuubinsyaProtocolNormal) Reset ¶
func (x *YuubinsyaProtocolNormal) Reset()
func (*YuubinsyaProtocolNormal) String ¶
func (x *YuubinsyaProtocolNormal) String() string
type Yuubinsya_Grpc ¶
type Yuubinsya_Grpc struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Grpc *Grpc `protobuf:"bytes,7,opt,name=grpc,proto3,oneof"` }
type Yuubinsya_Http2 ¶
type Yuubinsya_Http2 struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Http2 *Http2 `protobuf:"bytes,9,opt,name=http2,proto3,oneof"` }
type Yuubinsya_Normal ¶
type Yuubinsya_Normal struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Normal *Normal `protobuf:"bytes,3,opt,name=normal,proto3,oneof"` }
type Yuubinsya_Quic ¶
type Yuubinsya_Quic struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Quic *Quic `protobuf:"bytes,5,opt,name=quic,proto3,oneof"` }
type Yuubinsya_Reality ¶
type Yuubinsya_Reality struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Reality *Reality `protobuf:"bytes,10,opt,name=reality,proto3,oneof"` }
type Yuubinsya_Tls ¶
type Yuubinsya_Tls struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Tls *Tls `protobuf:"bytes,4,opt,name=tls,proto3,oneof"` }
type Yuubinsya_Websocket ¶
type Yuubinsya_Websocket struct { // Deprecated: Marked as deprecated in config/listener/listener.proto. Websocket *Websocket `protobuf:"bytes,6,opt,name=websocket,proto3,oneof"` }
Click to show internal directories.
Click to hide internal directories.