Skip to content

Commit 6a4296b

Browse files
authored
caddytls: panic when using tls.ca_pool.source.http -> tls.ca (#7393)
1 parent 3c9c67e commit 6a4296b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/caddytls/capools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func (t *TLSConfig) unmarshalCaddyfile(d *caddyfile.Dispenser) error {
502502
// If there is no custom TLS configuration, a nil config may be returned.
503503
// copied from with minor modifications: modules/caddyhttp/reverseproxy/httptransport.go
504504
func (t *TLSConfig) makeTLSClientConfig(ctx caddy.Context) (*tls.Config, error) {
505-
repl := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer)
505+
repl, _ := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer)
506506
if repl == nil {
507507
repl = caddy.NewReplacer()
508508
}

0 commit comments

Comments
 (0)