MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / handleAssociate

Method handleAssociate

socks/request_handler.go:127–132  ·  view source on GitHub ↗

handleAssociate is used to handle a connect command TODO: Support associate command

(conn io.ReadWriter, req *Request)

Source from the content-addressed store, hash-verified

125// handleAssociate is used to handle a connect command
126// TODO: Support associate command
127func (h *StandardRequestHandler) handleAssociate(conn io.ReadWriter, req *Request) error {
128 if err := sendReply(conn, commandNotSupported, nil); err != nil {
129 return fmt.Errorf("Failed to send reply: %v", err)
130 }
131 return nil
132}
133
134func StreamHandler(tunnelConn io.ReadWriter, originConn net.Conn, log *zerolog.Logger) {
135 dialer := NewConnDialer(originConn)

Callers 1

HandleMethod · 0.95

Calls 2

sendReplyFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected