mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-02 20:06:03 +02:00
authclient: clone TLS configuration to prevent overriding NextProtos (#2594)
This commit is contained in:
parent
e03460e124
commit
2f7a79d4f5
1 changed files with 1 additions and 1 deletions
|
@ -22,6 +22,6 @@ type Option func(*config)
|
|||
// WithTLSConfig returns an option to configure the tls config.
|
||||
func WithTLSConfig(tlsConfig *tls.Config) Option {
|
||||
return func(cfg *config) {
|
||||
cfg.tlsConfig = tlsConfig
|
||||
cfg.tlsConfig = tlsConfig.Clone()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue