mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-23 22:17:14 +02:00
add TLS flags for TCP tunnel (#1725)
This commit is contained in:
parent
73f4ee26fc
commit
ea4e9fa3aa
3 changed files with 24 additions and 23 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue