github.com/Kolosok86/http@v0.1.2/http2/go118.go (about) 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 "net" 12 13 tls "github.com/refraction-networking/utls" 14 ) 15 16 func tlsUnderlyingConn(tc *tls.Conn) net.Conn { 17 return tc.NetConn() 18 }