diff --git a/src/main.rs b/src/main.rs index cec6aba..cf9b1ff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,8 +180,8 @@ async fn get_targets() -> FeroxResult> { targets.push(line?); } } else if CONFIGURATION.resumed { - // resume-from can't be used with any other flag, making it mutually exclusive from either - // of the other two options + // resume-from can't be used with --url, and --stdin is marked false for every resumed + // scan, making it mutually exclusive from either of the other two options if let Ok(scans) = SCANNED_URLS.scans.lock() { for scan in scans.iter() { // SCANNED_URLS gets deserialized scans added to it at program start if --resume-from diff --git a/src/scan_manager.rs b/src/scan_manager.rs index f40f343..d7059f3 100644 --- a/src/scan_manager.rs +++ b/src/scan_manager.rs @@ -668,7 +668,6 @@ pub fn resume_scan(filename: &str) -> Configuration { std::process::exit(1); }); - // let scans: FeroxScans = serde_json::from_value(state.get("scans").unwrap().clone()).unwrap(); if let Some(responses) = state.get("responses") { if let Some(arr_responses) = responses.as_array() { for response in arr_responses {