From e3db969604126f0f21ec096a25147d5367bdc332 Mon Sep 17 00:00:00 2001 From: justarandomgeek Date: Fri, 13 Feb 2026 14:09:43 -0500 Subject: [PATCH] disable Unix Domain Sockets for windows --- radicle-httpd/src/lib.rs | 1 + radicle-httpd/src/main.rs | 1 + 2 files changed, 2 insertions(+) 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() {