Implement redirect by default (#7595)

* Change redirect default to yes so that it happens automatically in noninteractive mode

* Update changelog
This commit is contained in:
ohemorange 2019-11-25 18:53:20 -08:00 committed by GitHub
parent 5c8083851a
commit 6d1472bf8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -28,6 +28,9 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
`certbot.reverter.Reverter.view_config_changes`, and
`certbot.util.get_systemd_os_info` have been removed
* Certbot's `register --update-registration` subcommand has been removed
* When possible, default to automatically configuring the webserver so all requests
redirect to secure HTTPS access. This is mostly relevant when running Certbot
in non-interactive mode. Previously, the default was to not redirect all requests.
### Fixed

View file

@ -50,7 +50,7 @@ def redirect_by_default():
code, selection = util(interfaces.IDisplay).menu(
"Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.",
choices, default=0,
choices, default=1,
cli_flag="--redirect / --no-redirect", force_interactive=True)
if code != display_util.OK: