mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-27 02:33:48 +08:00
caddyhttp: Apply auto HTTPS redir to all interfaces (fix #6226)
This commit is contained in:
parent
e1f4b83ffa
commit
83ef61de10
|
@ -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
|
// port, we'll have to choose one, so prefer the HTTPS port
|
||||||
if _, ok := redirDomains[d]; !ok ||
|
if _, ok := redirDomains[d]; !ok ||
|
||||||
addr.StartPort == uint(app.httpsPort()) {
|
addr.StartPort == uint(app.httpsPort()) {
|
||||||
redirDomains[d] = []caddy.NetworkAddress{addr}
|
redirDomains[d] = append(redirDomains[d], addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user