summaryrefslogtreecommitdiffstats
path: root/src/os/lsof_utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/lsof_utils.rs')
-rw-r--r--src/os/lsof_utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/lsof_utils.rs b/src/os/lsof_utils.rs
index 9f6b479..93d68fe 100644
--- a/src/os/lsof_utils.rs
+++ b/src/os/lsof_utils.rs
@@ -45,7 +45,7 @@ impl RawConnection {
}
pub fn get_protocol(&self) -> Protocol {
- return Protocol::from_string(&self.protocol).unwrap();
+ return Protocol::from_str(&self.protocol).unwrap();
}
pub fn get_ip_address(&self) -> IpAddr {