Pull request: 4898 reload page on tls settings save
Merge in DNS/adguard-home from 4898-reload-page to master Closes #4898. Squashed commit of the following: commit c2d78804d96d00b5ff10e23c0f275a6c73455b93 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Mon Dec 26 18:03:31 2022 +0400 all: fix changelog commit e55db6a620e4aa74eb3562a4eb35bbd3d13c8712 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Mon Dec 26 18:02:37 2022 +0400 all: log changes commit 3985dc4a42d1dc717def3011d7dfd24dd49da0da Author: Ildar Kamalov <ik@adguard.com> Date: Mon Dec 26 15:20:38 2022 +0300 client: reload page on tls settings save
This commit is contained in:
committed by
Eugene Burkov
parent
97af23b0af
commit
e7fc61a997
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user