go118.go (315B)
1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build go1.18 6 // +build go1.18 7 8 package http2 9 10 import ( 11 "crypto/tls" 12 "net" 13 ) 14 15 func tlsUnderlyingConn(tc *tls.Conn) net.Conn { 16 return tc.NetConn() 17 }