Skip to content

Commit

Permalink
fix immediate exit if there's only one ip
Browse files Browse the repository at this point in the history
this might backfire...

that's called foreshadowing.
  • Loading branch information
radstevee authored Aug 30, 2023
1 parent 9ff5a6b commit ff06531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async fn main() {
let mut data: Vec<MinecraftServer> = vec![];

for (i, ip) in ips.iter().enumerate() {
if i == ips.len() -1 {
if i == ips.len() {
println!("Successfully scanned all IPs! Exiting now...");
std::process::exit(0);
}
Expand Down

0 comments on commit ff06531

Please sign in to comment.