fixed args index

This commit is contained in:
Patrick Mahnke-Hartmann
2025-09-01 13:46:22 +02:00
parent 15c0fd50f5
commit b66e5e23fd

View File

@@ -27,7 +27,7 @@ async fn flatten<T>(
async fn main() -> Result<(), Box<dyn Error + Send + Sync>> { async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
let args: Vec<String> = env::args().collect(); let args: Vec<String> = env::args().collect();
let server_url = &args[1]; let server_url = &args[0];
// Registration // Registration
let (server_id, ip) = match api::register_with_server(&server_url).await { let (server_id, ip) = match api::register_with_server(&server_url).await {