MCPcopy
hub / github.com/cloudflare/cloudflared / socksProxyOverWSConnection

Struct socksProxyOverWSConnection

ingress/origin_connection.go:76–78  ·  view source on GitHub ↗

socksProxyOverWSConnection is an OriginConnection that streams SOCKS connections over WS. The connection to the origin happens inside the SOCKS code as the client specifies the origin details in the packet.

Source from the content-addressed store, hash-verified

74// The connection to the origin happens inside the SOCKS code as the client specifies the origin
75// details in the packet.
76type socksProxyOverWSConnection struct {
77 accessPolicy *ipaccess.Policy
78}
79
80func (sp *socksProxyOverWSConnection) Stream(ctx context.Context, tunnelConn io.ReadWriter, log *zerolog.Logger) {
81 wsCtx, cancel := context.WithCancel(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected