MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / handleBind

Method handleBind

socks/request_handler.go:118–123  ·  view source on GitHub ↗

handleBind is used to handle a bind command TODO: Support bind command

(conn io.ReadWriter, req *Request)

Source from the content-addressed store, hash-verified

116// handleBind is used to handle a bind command
117// TODO: Support bind command
118func (h *StandardRequestHandler) handleBind(conn io.ReadWriter, req *Request) error {
119 if err := sendReply(conn, commandNotSupported, nil); err != nil {
120 return fmt.Errorf("Failed to send reply: %v", err)
121 }
122 return nil
123}
124
125// handleAssociate is used to handle a connect command
126// TODO: Support associate command

Callers 1

HandleMethod · 0.95

Calls 2

sendReplyFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected