Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 17:15 UTC
caddytls: panic when using tls.ca_pool.source.http -> tls.ca (#7393)
Paul B committed
Dec 11, 2025 at 14:27 UTC
6a4296b1a45d81f52bf8ab01d0bcaa4423fee3ff
1 file changed
+1
-1
modules/caddytls/capools.go
+1
-1
@@ -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)
505
+ repl, _ := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer)
506
if repl == nil {
507
repl = caddy.NewReplacer()
508
}