Versions in this module Expand all Collapse all v1 v1.5.6 Mar 27, 2022 Changes in this version + var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor + 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 struct + Address *net.IPOrDomain + FollowRedirect bool + NetworkList *net.NetworkList + Networks []net.Network + Port uint32 + Timeout uint32 + UserLevel uint32 + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (v *Config) GetPredefinedAddress() net.Address + func (x *Config) GetAddress() *net.IPOrDomain + func (x *Config) GetFollowRedirect() bool + func (x *Config) GetNetworkList() *net.NetworkList + func (x *Config) GetNetworks() []net.Network + func (x *Config) GetPort() uint32 + func (x *Config) GetTimeout() uint32 + func (x *Config) GetUserLevel() uint32 + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type DokodemoDoor struct + func (d *DokodemoDoor) Init(config *Config, pm policy.Manager, sockopt *session.Sockopt) error + func (d *DokodemoDoor) Network() []net.Network + func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn stat.Connection, ...) error + type PacketWriter struct + func (w *PacketWriter) Close() error + func (w *PacketWriter) WriteMultiBuffer(mb buf.MultiBuffer) error