MCPcopy Create free account
hub / github.com/convox/rack / proxyConnection

Function proxyConnection

pkg/cli/proxy.go:115–125  ·  view source on GitHub ↗
(c *stdcli.Context, cn net.Conn, rack sdk.Interface, remotehost string, remoteport int, secure bool)

Source from the content-addressed store, hash-verified

113}
114
115func proxyConnection(c *stdcli.Context, cn net.Conn, rack sdk.Interface, remotehost string, remoteport int, secure bool) {
116 defer cn.Close()
117
118 opts := structs.ProxyOptions{
119 TLS: options.Bool(secure),
120 }
121
122 if err := rack.WithContext(c.Context).Proxy(remotehost, remoteport, cn, opts); err != nil {
123 c.Error(err)
124 }
125}

Callers 1

proxyFunction · 0.85

Calls 5

BoolFunction · 0.92
ProxyMethod · 0.65
WithContextMethod · 0.65
CloseMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected