diff --git a/radicle-httpd/src/lib.rs b/radicle-httpd/src/lib.rs index 4c36a234f..c6bdac1eb 100644 --- a/radicle-httpd/src/lib.rs +++ b/radicle-httpd/src/lib.rs @@ -116,6 +116,7 @@ pub async fn run(options: Options) -> anyhow::Result<()> { "{} \"{} {} {:?}\" {} {:?} {}", match info.connect_info.0 { DualAddr::Tcp(c) => c.to_string(), + #[cfg(unix)] DualAddr::Uds(_) => "unix-socket".into() }, info.method, diff --git a/radicle-httpd/src/main.rs b/radicle-httpd/src/main.rs index 81190f246..5661b2e40 100644 --- a/radicle-httpd/src/main.rs +++ b/radicle-httpd/src/main.rs @@ -63,6 +63,7 @@ fn parse_options() -> Result { Long("listen") => { let addr: DualAddr = parser.value()?.parse()?; + #[cfg(unix)] // Get socket path and remove it if existing if let DualAddr::Uds(socket_path) = &addr { if let Some(path) = socket_path.as_pathname() {