Skip to content
Snippets Groups Projects
Commit 00e0498c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

If the service host is changed, the old private key is invalid.

Just delete the old private key and create a new one for the new
host.
parent 8d41b810
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -222,8 +222,11 @@ if (argv !== undefined) {
/*
* Renew if the config has changed
*/
if (old_host != new_host)
if (old_host != new_host) {
// If we change hosts, delete the old private key.
file_remove(ks_fname);
renew = true;
}
else if (new_domain_hash != old_domain_hash)
renew = true;
else if (!at_least_a_third())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment