Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
209
func
underlyingConn(c net.Conn) net.Conn {
210
if
wrap, ok := c.(*Conn); ok {
211
return
wrap.Conn
212
}
213
return
c
214
}
215
216
func
asTLSConn(c net.Conn) *tls.Conn {
217
uc := underlyingConn(c)
Callers
2
proxyCopy
Function · 0.85
asTLSConn
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected