Documentation ¶
Index ¶
- Constants
- Variables
- func Dial(ctx context.Context, dest net.Destination, ...) (stat.Connection, error)
- func GetOriginalDestination(conn stat.Connection) (net.Destination, error)
- func ListenTCP(ctx context.Context, address net.Address, port net.Port, ...) (internet.Listener, error)
- type Config
- type Listener
Constants ¶
View Source
const SO_ORIGINAL_DST = 80
Variables ¶
View Source
var File_transport_internet_tcp_config_proto protoreflect.FileDescriptor
Functions ¶
func Dial ¶
func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.MemoryStreamConfig) (stat.Connection, error)
Dial dials a new TCP connection to the given destination.
func GetOriginalDestination ¶
func GetOriginalDestination(conn stat.Connection) (net.Destination, error)
Types ¶
type Config ¶
type Config struct { HeaderSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=header_settings,json=headerSettings,proto3" json:"header_settings,omitempty"` AcceptProxyProtocol bool `protobuf:"varint,3,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAcceptProxyProtocol ¶
func (*Config) GetHeaderSettings ¶
func (x *Config) GetHeaderSettings() *serial.TypedMessage
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.