aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2024-04-12 06:04:47 -0600
committerMatthew Holt <[email protected]>2024-04-12 06:04:47 -0600
commit83ef61de106b7574d5dea8ffeb879f384df4ebdf (patch)
tree678fe84b0e80fb3dd2c4023797e99a7fb0d5541c
parente1f4b83ffaa861e8f383ba52108e6449b53217f2 (diff)
downloadcaddy-83ef61de106b7574d5dea8ffeb879f384df4ebdf.tar.gz
caddy-83ef61de106b7574d5dea8ffeb879f384df4ebdf.zip
caddyhttp: Apply auto HTTPS redir to all interfaces (fix #6226)
-rw-r--r--modules/caddyhttp/autohttps.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}
}