(c net.Conn)
| 214 | } |
| 215 | |
| 216 | func asTLSConn(c net.Conn) *tls.Conn { |
| 217 | uc := underlyingConn(c) |
| 218 | if tlsconn, ok := uc.(*tls.Conn); ok { |
| 219 | return tlsconn |
| 220 | } |
| 221 | return tls.Server(c, env.TlsConfig()) |
| 222 | } |
nothing calls this directly
no test coverage detected