mirror of
https://github.com/caddyserver/caddy.git
synced 2026-10-25 13:28:48 -04:00
caddyhttp: Apply auto HTTPS redir to all interfaces (fix #6226)
This commit is contained in:
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user