MCPcopy Create free account
hub / github.com/celzero/midway / underlyingConn

Function underlyingConn

midway/relay/proxy.go:209–214  ·  view source on GitHub ↗
(c net.Conn)

Source from the content-addressed store, hash-verified

207}
208
209func underlyingConn(c net.Conn) net.Conn {
210 if wrap, ok := c.(*Conn); ok {
211 return wrap.Conn
212 }
213 return c
214}
215
216func asTLSConn(c net.Conn) *tls.Conn {
217 uc := underlyingConn(c)

Callers 2

proxyCopyFunction · 0.85
asTLSConnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected