Documentation
¶
Overview ¶
Package socks4a offers protocol operations.
Package socks4a offers protocol operations.
Index ¶
- Constants
- type Request
- func (r *Request) Command() (m string)
- func (r *Request) GetRequest(w io.Writer, rd *bufio.Reader) (err error)
- func (r *Request) Host() string
- func (r *Request) Hostname() string
- func (r *Request) Port() string
- func (r *Request) Request(fw *forwarder.Forwarder, _, seg bool) (restart bool, err error)
- func (r *Request) Target() string
Constants ¶
View Source
const ( CmdConnect = 1 CmdBind = 2 )
SOCKS address types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Ver byte Cmd byte //AddrType byte DestHost string DestPort string PacketData socks.Packet RequestData socks.Packet Responsed bool }
Request struct.
func ParseRequest ¶
ParseRequest parses a request.
func (*Request) GetRequest ¶
GetRequest requests the ClientHello for sending to a remote server. RCWN (Race Cache With Network) or ads blockers would abort dial-in without sendig ClientHello! Drop it.
Click to show internal directories.
Click to hide internal directories.