Added ServeTLS in testutils.ChannelOpts to create a test server with TLS listener listening on port 0.
TLS listener uses a static cert/key pair present in internal/testcert package to prevent accidental use of the cert in production.
Other changes:
Updated getSysConn to handle tls.Conn as tls.Conn doesn't directly implement syscall.Conn.
Added
ServeTLS
intestutils.ChannelOpts
to create a test server with TLS listener listening on port 0. TLS listener uses a static cert/key pair present ininternal/testcert
package to prevent accidental use of the cert in production.Other changes:
getSysConn
to handletls.Conn
astls.Conn
doesn't directly implementsyscall.Conn
.