not_go118.go 308 B

1234567891011121314151617
  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. //go:build !go1.18
  5. // +build !go1.18
  6. package http2
  7. import (
  8. "crypto/tls"
  9. "net"
  10. )
  11. func tlsUnderlyingConn(tc *tls.Conn) net.Conn {
  12. return nil
  13. }