disable Unix Domain Sockets for windows

This commit is contained in:
justarandomgeek
2026-02-26 09:13:23 -06:00
committed by Rūdolfs Ošiņš
parent 2bbb35b2f1
commit e3db969604
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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,
+1
View File
@@ -63,6 +63,7 @@ fn parse_options() -> Result<httpd::Options, lexopt::Error> {
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() {