From 6a4296b1a45d81f52bf8ab01d0bcaa4423fee3ff Mon Sep 17 00:00:00 2001 From: Paul B Date: Thu, 11 Dec 2025 14:27:15 -0500 Subject: [PATCH] caddytls: panic when using tls.ca_pool.source.http -> tls.ca (#7393) --- modules/caddytls/capools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caddytls/capools.go b/modules/caddytls/capools.go index 5ed6a82a9..bcc9ec6e8 100644 --- a/modules/caddytls/capools.go +++ b/modules/caddytls/capools.go @@ -502,7 +502,7 @@ func (t *TLSConfig) unmarshalCaddyfile(d *caddyfile.Dispenser) error { // If there is no custom TLS configuration, a nil config may be returned. // copied from with minor modifications: modules/caddyhttp/reverseproxy/httptransport.go func (t *TLSConfig) makeTLSClientConfig(ctx caddy.Context) (*tls.Config, error) { - repl := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer) + repl, _ := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer) if repl == nil { repl = caddy.NewReplacer() }