Added build script
This commit is contained in:
@@ -6,7 +6,7 @@ pub enum HostStatus {
|
||||
Up,
|
||||
Down,
|
||||
Filtered,
|
||||
Unknown
|
||||
Unknown,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@@ -42,7 +42,7 @@ pub struct PortResult {
|
||||
pub struct NetbiosInfo {
|
||||
pub computer_name: Option<String>,
|
||||
pub workgroup: Option<String>,
|
||||
pub mac_from_netbios: Option<String>
|
||||
pub mac_from_netbios: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@@ -79,7 +79,7 @@ impl HostResult {
|
||||
updated_at: now_ms(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn down(ip: IpAddr) -> Self {
|
||||
Self {
|
||||
ip,
|
||||
@@ -93,4 +93,4 @@ impl HostResult {
|
||||
updated_at: now_ms(),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user