diff --git a/CHANGELOG.md b/CHANGELOG.md index cf970fd9..fc312aba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,12 +42,14 @@ See also the [v0.107.21 GitHub milestone][ms-v0.107.21]. ### Fixed +- Failing HTTPS redirection on saving the encryption settings ([#4898]). - Zeroing rules counter of erroneusly edited filtering rule lists ([#5290]). - Filters updating strategy, which could sometimes lead to use of broken or incompletely downloaded lists ([#5258]). - Errors popping up during updates of settings, which could sometimes cause the server to stop responding ([#5251]). +[#4898]: https://github.com/AdguardTeam/AdGuardHome/issues/4898 [#5238]: https://github.com/AdguardTeam/AdGuardHome/issues/5238 [#5251]: https://github.com/AdguardTeam/AdGuardHome/issues/5251 [#5258]: https://github.com/AdguardTeam/AdGuardHome/issues/5258 diff --git a/client/src/actions/encryption.js b/client/src/actions/encryption.js index 670a9f4e..5db97607 100644 --- a/client/src/actions/encryption.js +++ b/client/src/actions/encryption.js @@ -41,6 +41,10 @@ export const setTlsConfig = (config) => async (dispatch, getState) => { response.certificate_chain = atob(response.certificate_chain); response.private_key = atob(response.private_key); + if (values.enabled && values.force_https && window.location.protocol === 'http:') { + window.location.reload(); + return; + } redirectToCurrentProtocol(response, httpPort); const dnsStatus = await apiClient.getGlobalStatus();