Documentation ¶
Overview ¶
Package forwarder is the MITM that operates the communication without descryption.
Index ¶
Constants ¶
View Source
const ( TLSHandshake byte = 0x16 TLSChangeCipher byte = 0x14 TLSApplication byte = 0x17 )
TLS packet types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forwarder ¶
type Forwarder struct { LeftAddr net.Addr LeftConn *bufconn.Conn LeftTran Transformer RightAddr net.Addr RightConn *bufconn.Conn // TCP/UDP RightTran Transformer Timeout time.Duration Wave float64 }
Forwarder is the relay for client to upstream and proxy to downstream.
type Transformer ¶ added in v0.1.8
Transformer offers methods on the data.
Click to show internal directories.
Click to hide internal directories.