add TLS flags for TCP tunnel (#1725)

This commit is contained in:
Caleb Doxsey 2020-12-29 14:36:52 -07:00 committed by GitHub
parent 73f4ee26fc
commit ea4e9fa3aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 23 deletions

View file

@ -25,6 +25,7 @@ var tcpCmdOptions struct {
}
func init() {
addTLSFlags(tcpCmd)
flags := tcpCmd.Flags()
flags.StringVar(&tcpCmdOptions.listen, "listen", "127.0.0.1:0",
"local address to start a listener on")
@ -63,7 +64,7 @@ var tcpCmd = &cobra.Command{
var tlsConfig *tls.Config
if pomeriumURL.Scheme == "https" {
tlsConfig = getTLSConfig(false, "", "")
tlsConfig = getTLSConfig()
}
l := zerolog.New(zerolog.NewConsoleWriter(func(w *zerolog.ConsoleWriter) {