Skip to content

Commit

Permalink
@0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Chleba committed Apr 17, 2024
1 parent 226d0c6 commit 6089d59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "netscanner"
version = "0.4.1"
version = "0.4.2"
edition = "2021"
description = "Network Scanner"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/components/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,11 @@ impl Component for Discovery {
let intf = interface.clone();
// -- first time scan after setting of interface
if self.active_interface.is_none() {

let a_ip = intf.ips[0].ip().to_string();
let ip: Vec<&str> = a_ip.split('.').collect();
let new_a_ip = format!("{}.{}.{}.0/24", ip[0], ip[1], ip[2]);
self.input = Input::default().with_value(new_a_ip);

self.set_cidr(self.input.value().to_string(), true);
}
self.active_interface = Some(intf);
Expand Down

0 comments on commit 6089d59

Please sign in to comment.