mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-30 15:58:10 +08:00
Don't use auto HTTPS for servers with only HTTP port listeners
This commit is contained in:
@ -188,6 +188,11 @@ func (app *App) automaticHTTPS() error {
|
||||
continue
|
||||
}
|
||||
|
||||
// skip if all listeners use the HTTP port
|
||||
if !srv.listenersUseAnyPortOtherThan(app.HTTPPort) {
|
||||
continue
|
||||
}
|
||||
|
||||
// find all qualifying domain names, de-duplicated
|
||||
domainSet := make(map[string]struct{})
|
||||
for _, route := range srv.Routes {
|
||||
|
Reference in New Issue
Block a user