Skip to content

Commit

Permalink
caddyhttp: Apply auto HTTPS redir to all interfaces (fix #6226)
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Apr 12, 2024
1 parent e1f4b83 commit 83ef61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/autohttps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 83ef61d

Please sign in to comment.