Documentation ¶
Index ¶
- func NewHTTP(request *http.Request, conn net.Conn) *context.HTTPContext
- func NewHTTPS(request *http.Request, conn net.Conn) *context.ConnContext
- func NewSocket(target socks5.Addr, conn net.Conn, source C.Type) *context.ConnContext
- func RemoveExtraHTTPHostPort(req *http.Request)
- func RemoveHopByHopHeaders(header http.Header)
- type PacketAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveExtraHTTPHostPort ¶ added in v1.4.2
RemoveExtraHTTPHostPort remove extra host port (example.com:80 --> example.com) It resolves the behavior of some HTTP servers that do not handle host:80 (e.g. baidu.com)
func RemoveHopByHopHeaders ¶
RemoveHopByHopHeaders remove hop-by-hop header
Types ¶
type PacketAdapter ¶ added in v0.17.0
PacketAdapter is a UDP Packet adapter for socks/redir/tun
func (*PacketAdapter) Metadata ¶ added in v0.17.0
func (s *PacketAdapter) Metadata() *C.Metadata
Metadata returns destination metadata
Click to show internal directories.
Click to hide internal directories.