mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
caddyhttp: Apply auto HTTPS redir to all interfaces (fix #6226)
This commit is contained in:
parent
e1f4b83ffa
commit
83ef61de10
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue