|
|
|
@ -2,10 +2,7 @@ use crate::ipv4; |
|
|
|
|
use anyhow::Result; |
|
|
|
|
use log::info; |
|
|
|
|
//use std::thread;
|
|
|
|
|
use std::{ |
|
|
|
|
net::{SocketAddr, TcpStream}, |
|
|
|
|
//thread::JoinHandle,
|
|
|
|
|
}; |
|
|
|
|
use std::net::{SocketAddr, TcpStream}; |
|
|
|
|
|
|
|
|
|
fn tcp_scan(dest: &SocketAddr) -> bool { |
|
|
|
|
if let Ok(res) = TcpStream::connect(dest) { |
|
|
|
|