We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9c67e commit 6a4296bCopy full SHA for 6a4296b
modules/caddytls/capools.go
@@ -502,7 +502,7 @@ func (t *TLSConfig) unmarshalCaddyfile(d *caddyfile.Dispenser) error {
502
// If there is no custom TLS configuration, a nil config may be returned.
503
// copied from with minor modifications: modules/caddyhttp/reverseproxy/httptransport.go
504
func (t *TLSConfig) makeTLSClientConfig(ctx caddy.Context) (*tls.Config, error) {
505
- repl := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer)
+ repl, _ := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer)
506
if repl == nil {
507
repl = caddy.NewReplacer()
508
}
0 commit comments