Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 14:30 UTC
caddyhttp: Apply auto HTTPS redir to all interfaces (fix #6226)
Matthew Holt committed
Apr 12, 2024 at 06:04 UTC
83ef61de106b7574d5dea8ffeb879f384df4ebdf
1 file changed
+1
-1
modules/caddyhttp/autohttps.go
+1
-1
@@ -260,7 +260,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
260
// port, we'll have to choose one, so prefer the HTTPS port
261
if _, ok := redirDomains[d]; !ok ||
262
addr.StartPort == uint(app.httpsPort()) {
263
- redirDomains[d] = []caddy.NetworkAddress{addr}
263
+ redirDomains[d] = append(redirDomains[d], addr)
264
}
265
}
266
}