From 83ef61de106b7574d5dea8ffeb879f384df4ebdf Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 12 Apr 2024 06:04:47 -0600 Subject: caddyhttp: Apply auto HTTPS redir to all interfaces (fix #6226) --- modules/caddyhttp/autohttps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caddyhttp/autohttps.go b/modules/caddyhttp/autohttps.go index aec43c7c7..e28062f05 100644 --- a/modules/caddyhttp/autohttps.go +++ b/modules/caddyhttp/autohttps.go @@ -260,7 +260,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er // port, we'll have to choose one, so prefer the HTTPS port if _, ok := redirDomains[d]; !ok || addr.StartPort == uint(app.httpsPort()) { - redirDomains[d] = []caddy.NetworkAddress{addr} + redirDomains[d] = append(redirDomains[d], addr) } } } -- cgit v1.2.3