From 8c25174e69e8805a9a7dcefcb6574ac6fe103b8d Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 23 May 2025 12:37:46 +0100 Subject: fix(init): dont default to user read relay list as it usually full of inappropriate relays like purplepages. --- src/bin/ngit/sub_commands/init.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/bin') diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index bf4842a..9479032 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs @@ -221,10 +221,8 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { .iter() .map(std::string::ToString::to_string) .collect::>() - } else if user_ref.relays.read().is_empty() { - client.get_fallback_relays().clone() } else { - user_ref.relays.read().clone() + client.get_fallback_relays().clone() } } else { args.relays.clone() -- cgit v1.2.3