drk: script kiddies be gone

This commit is contained in:
skoupidi
2024-01-25 18:55:47 +02:00
parent 3062597fca
commit 8c8db819f2

View File

@@ -486,6 +486,12 @@ impl Drk {
endpoint: Url,
ex: Arc<smol::Executor<'static>>,
) -> Result<Self> {
// Script kiddies protection
if wallet_pass == "changeme" {
eprintln!("Please don't use default wallet password...");
exit(2);
}
// Initialize wallet
let wallet_path = expand_path(&wallet_path)?;
if !wallet_path.exists() {