Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 00e0498c authored by Deucе's avatar Deucе 👌🏾

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
......@@ -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())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment