Re-work crate management

This commit is contained in:
2024-10-10 15:06:23 +02:00
parent 565e268d01
commit 1495950484
10 changed files with 348 additions and 198 deletions

View File

@ -1,13 +1,12 @@
use std::{net::IpAddr, str::FromStr};
use crate::{
worker::detection::{detect_scanner_from_name, validate_ip},
DbConnection, SnowDb,
};
use crate::{DbConnection, SnowDb};
use hickory_resolver::Name;
use rocket::futures::channel::mpsc as rocket_mpsc;
use rocket::futures::StreamExt;
use rocket::tokio;
use snow_scanner_worker::detection::{detect_scanner_from_name, validate_ip};
use crate::Scanner;