dokodemo

package
v5.57.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 22 Imported by: 7 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

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=v2ray.core.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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAddress

func (x *Config) GetAddress() *net.IPOrDomain

func (*Config) GetFollowRedirect

func (x *Config) GetFollowRedirect() bool

func (*Config) GetNetworkList deprecated

func (x *Config) GetNetworkList() *net.NetworkList

Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.

func (*Config) GetNetworks

func (x *Config) GetNetworks() []net.Network

func (*Config) GetPort

func (x *Config) GetPort() uint32

func (*Config) GetPredefinedAddress

func (v *Config) GetPredefinedAddress() net.Address

GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.

func (*Config) GetTimeout deprecated

func (x *Config) GetTimeout() uint32

Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.

func (*Config) GetUserLevel

func (x *Config) GetUserLevel() uint32

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 Door

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

func (*Door) Init

func (d *Door) Init(config *Config, pm policy.Manager, sockopt *session.Sockopt) error

Init initializes the Door instance with necessary parameters.

func (*Door) Network

func (d *Door) Network() []net.Network

Network implements proxy.Inbound.

func (*Door) Process

func (d *Door) Process(ctx context.Context, network net.Network, conn internet.Connection, dispatcher routing.Dispatcher) error

Process implements proxy.Inbound.

type SimplifiedConfig

type SimplifiedConfig 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"`
	Networks       *net.NetworkList `protobuf:"bytes,3,opt,name=networks,proto3" json:"networks,omitempty"`
	FollowRedirect bool             `protobuf:"varint,4,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
	// contains filtered or unexported fields
}

func (*SimplifiedConfig) Descriptor deprecated

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

Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.

func (*SimplifiedConfig) GetAddress

func (x *SimplifiedConfig) GetAddress() *net.IPOrDomain

func (*SimplifiedConfig) GetFollowRedirect

func (x *SimplifiedConfig) GetFollowRedirect() bool

func (*SimplifiedConfig) GetNetworks added in v5.0.8

func (x *SimplifiedConfig) GetNetworks() *net.NetworkList

func (*SimplifiedConfig) GetPort

func (x *SimplifiedConfig) GetPort() uint32

func (*SimplifiedConfig) ProtoMessage

func (*SimplifiedConfig) ProtoMessage()

func (*SimplifiedConfig) ProtoReflect

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

func (*SimplifiedConfig) Reset

func (x *SimplifiedConfig) Reset()

func (*SimplifiedConfig) String

func (x *SimplifiedConfig) String() string

Jump to

Keyboard shortcuts

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