mirror of
https://github.com/lldap/lldap.git
synced 2024-11-24 08:45:08 +00:00
server: improve key_seed warning
This commit is contained in:
parent
f01daae6a8
commit
52c917d967
1 changed files with 2 additions and 2 deletions
|
@ -361,9 +361,9 @@ fn get_server_setup<L: Into<PrivateKeyLocationOrFigment>>(
|
|||
file_path
|
||||
);
|
||||
} else if file_path == "server_key" {
|
||||
eprintln!("WARNING: A key_seed was given, we will ignore the server_key and generate one from the seed!");
|
||||
eprintln!("WARNING: A key_seed was given, we will ignore the server_key and generate one from the seed! Set server_key to an empty string in the config to silence this message.");
|
||||
} else {
|
||||
println!("Generating the key from the key_seed");
|
||||
println!("Generating the private key from the key_seed");
|
||||
}
|
||||
use rand::SeedableRng;
|
||||
let mut rng = rand_chacha::ChaCha20Rng::from_seed(stable_hash(key_seed.as_bytes()));
|
||||
|
|
Loading…
Reference in a new issue