Skip to content

Commit

Permalink
Merge branch 'dev' into changeserver-args
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianvp authored Dec 6, 2024
2 parents e2b4794 + 5bcb65a commit 114f447
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zingolib/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ impl Command for ChangeServerCommand {
lightclient.set_server(uri);
"server set"
}
Err(_) => "invalid server uri",
Err(_) => match args[0] {
"" => {
lightclient.set_server(http::Uri::default());
"server set"
}
_ => "invalid server uri",
},
}
.to_string(),
_ => self.help().to_string(),
Expand Down

0 comments on commit 114f447

Please sign in to comment.