Documentation ¶
Index ¶
- Variables
- func FakeUDP(addr *net.UDPAddr, mark int) (net.PacketConn, error)
- func NewPacketWriter(conn net.PacketConn, d *net.Destination, mark int, back *net.UDPAddr) buf.Writer
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAddress() *net.IPOrDomain
- func (x *Config) GetFollowRedirect() bool
- func (x *Config) GetNetworkList() *net.NetworkListdeprecated
- func (x *Config) GetNetworks() []net.Network
- func (x *Config) GetPort() uint32
- func (v *Config) GetPredefinedAddress() net.Address
- func (x *Config) GetTimeout() uint32deprecated
- func (x *Config) GetUserLevel() uint32
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type DokodemoDoor
- type PacketWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor
Functions ¶
func NewPacketWriter ¶
func NewPacketWriter(conn net.PacketConn, d *net.Destination, mark int, back *net.UDPAddr) buf.Writer
Types ¶
type Config ¶
type Config 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"` // List of networks that the Dokodemo accepts. // Deprecated. Use networks. // // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto. NetworkList *net.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"` // List of networks that the Dokodemo accepts. Networks []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=xray.common.net.Network" json:"networks,omitempty"` // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto. Timeout uint32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` FollowRedirect bool `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"` UserLevel uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAddress ¶
func (x *Config) GetAddress() *net.IPOrDomain
func (*Config) GetFollowRedirect ¶
func (*Config) GetNetworkList
deprecated
func (x *Config) GetNetworkList() *net.NetworkList
Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
func (*Config) GetNetworks ¶
func (*Config) GetPredefinedAddress ¶
GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
func (*Config) GetTimeout
deprecated
func (*Config) GetUserLevel ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type DokodemoDoor ¶
type DokodemoDoor struct {
// contains filtered or unexported fields
}
func (*DokodemoDoor) Network ¶
func (d *DokodemoDoor) Network() []net.Network
Network implements proxy.Inbound.
func (*DokodemoDoor) Process ¶
func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn stat.Connection, dispatcher routing.Dispatcher) error
Process implements proxy.Inbound.
type PacketWriter ¶
type PacketWriter struct {
// contains filtered or unexported fields
}
func (*PacketWriter) Close ¶
func (w *PacketWriter) Close() error
func (*PacketWriter) WriteMultiBuffer ¶
func (w *PacketWriter) WriteMultiBuffer(mb buf.MultiBuffer) error
Click to show internal directories.
Click to hide internal directories.