import "v2ray.com/core/proxy/dokodemo"
config.go config.pb.go dokodemo.go errors.generated.go
var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor
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: Do not use. 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=v2ray.core.common.net.Network" json:"networks,omitempty"` // Deprecated: Do not use. 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 }
Deprecated: Use Config.ProtoReflect.Descriptor instead.
func (x *Config) GetAddress() *net.IPOrDomain
func (x *Config) GetNetworkList() *net.NetworkList
Deprecated: Do not use.
GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
Deprecated: Do not use.
func (x *Config) ProtoReflect() protoreflect.Message
type DokodemoDoor struct {
// contains filtered or unexported fields
}
Init initializes the DokodemoDoor instance with necessary parameters.
func (d *DokodemoDoor) Network() []net.Network
Network implements proxy.Inbound.
func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn internet.Connection, dispatcher routing.Dispatcher) error
Process implements proxy.Inbound.
Package dokodemo imports 21 packages (graph) and is imported by 13 packages. Updated 2020-10-15. Refresh now. Tools for package owners.