cli
E. Almqvist 2 years ago
parent ac51f7c46a
commit 7a246bc601
  1. 5
      src/scanner.rs

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

Loading…
Cancel
Save