Documentation
¶
Index ¶
- Variables
- type ClientRequest
- type Config
- type Inject
- func (i *Inject) DecodePayload(request ClientRequest, payload string) string
- func (i *Inject) ExtractClientRequest(c net.Conn) (map[string]string, error)
- func (i *Inject) Forward(c net.Conn)
- func (i *Inject) GetProxy(request map[string]string) (string, int, error)
- func (i *Inject) GetProxyFromRule(w string) []string
- func (i *Inject) Handle(w io.Writer, r io.Reader, done chan bool)
- func (i *Inject) Handler(c net.Conn, s net.Conn)
- func (i *Inject) NewConnection(proxyHost string, proxyPort int, request map[string]string) (net.Conn, error)
- func (i *Inject) ReadResponse(r net.Conn) string
- func (i *Inject) Start()
- func (i *Inject) TunnelType0(c net.Conn, request ClientRequest)
- func (i *Inject) TunnelType1(c net.Conn, request ClientRequest)
- func (i *Inject) TunnelType2(c net.Conn, request ClientRequest)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ClientRequest ¶
type Inject ¶
type Inject struct {
Redsocks *libredsocks.Redsocks
Config *Config
}
func (*Inject) DecodePayload ¶
func (i *Inject) DecodePayload(request ClientRequest, payload string) string
func (*Inject) ExtractClientRequest ¶
func (*Inject) GetProxyFromRule ¶
func (*Inject) NewConnection ¶
func (*Inject) TunnelType0 ¶
func (i *Inject) TunnelType0(c net.Conn, request ClientRequest)
func (*Inject) TunnelType1 ¶
func (i *Inject) TunnelType1(c net.Conn, request ClientRequest)
func (*Inject) TunnelType2 ¶
func (i *Inject) TunnelType2(c net.Conn, request ClientRequest)
Click to show internal directories.
Click to hide internal directories.