summaryrefslogtreecommitdiffstats
path: root/src/network/connection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/connection.rs')
-rw-r--r--src/network/connection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/connection.rs b/src/network/connection.rs
index 907e929..bdbf448 100644
--- a/src/network/connection.rs
+++ b/src/network/connection.rs
@@ -14,7 +14,7 @@ impl Protocol {
// Currently, linux implementation doesn't use this function.
// Without this #[cfg] clippy complains about dead code, and CI refuses
// to pass.
- #[cfg(target_os = "macos")]
+ #[cfg(any(target_os = "macos", target_os = "freebsd"))]
pub fn from_str(string: &str) -> Option<Self> {
match string {
"TCP" => Some(Protocol::Tcp),