Documentation ¶
Index ¶
- Constants
- func GetOriginalDestination(conn internet.Connection) net.Destination
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetAddress() *v2ray_core_common_net.IPOrDomain
- func (m *Config) GetFollowRedirect() bool
- func (m *Config) GetNetworkList() *v2ray_core_common_net1.NetworkList
- func (m *Config) GetPort() uint32
- func (v *Config) GetPredefinedAddress() net.Address
- func (m *Config) GetTimeout() uint32
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- type DokodemoDoor
- func (v *DokodemoDoor) Close()
- func (v *DokodemoDoor) HandleTCPConnection(conn internet.Connection)
- func (v *DokodemoDoor) ListenTCP() error
- func (v *DokodemoDoor) ListenUDP() error
- func (v *DokodemoDoor) Network() net.NetworkList
- func (v *DokodemoDoor) Port() net.Port
- func (v *DokodemoDoor) Start() error
Constants ¶
View Source
const SO_ORIGINAL_DST = 80
Variables ¶
This section is empty.
Functions ¶
func GetOriginalDestination ¶ added in v1.17.1
func GetOriginalDestination(conn internet.Connection) net.Destination
Types ¶
type Config ¶ added in v1.1.1
type Config struct { Address *v2ray_core_common_net.IPOrDomain `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` NetworkList *v2ray_core_common_net1.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList" json:"network_list,omitempty"` Timeout uint32 `protobuf:"varint,4,opt,name=timeout" json:"timeout,omitempty"` FollowRedirect bool `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect" json:"follow_redirect,omitempty"` }
func (*Config) GetAddress ¶
func (m *Config) GetAddress() *v2ray_core_common_net.IPOrDomain
func (*Config) GetNetworkList ¶
func (m *Config) GetNetworkList() *v2ray_core_common_net1.NetworkList
func (*Config) GetPredefinedAddress ¶
GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
type DokodemoDoor ¶
type DokodemoDoor struct {
// contains filtered or unexported fields
}
func (*DokodemoDoor) Close ¶ added in v1.9.1
func (v *DokodemoDoor) Close()
func (*DokodemoDoor) HandleTCPConnection ¶
func (v *DokodemoDoor) HandleTCPConnection(conn internet.Connection)
func (*DokodemoDoor) ListenTCP ¶
func (v *DokodemoDoor) ListenTCP() error
func (*DokodemoDoor) ListenUDP ¶
func (v *DokodemoDoor) ListenUDP() error
func (*DokodemoDoor) Network ¶
func (v *DokodemoDoor) Network() net.NetworkList
func (*DokodemoDoor) Port ¶ added in v1.9.1
func (v *DokodemoDoor) Port() net.Port
func (*DokodemoDoor) Start ¶ added in v1.17.1
func (v *DokodemoDoor) Start() error
Click to show internal directories.
Click to hide internal directories.